msmbuilder.Trajectory.Trajectory.subsample

Trajectory.subsample(stride)[source]

Keep only the frames at some interval

Shorten trajectory by taking every `stride`th frame. Note that this is an inplace operation!

Parameters:

stride: int :

interval

Notes

Trajectory supports fancy indexing, so you can do this by yourself