msmbuilder.clustering.stochastic_subsample

msmbuilder.clustering.stochastic_subsample(trajectories, shrink_multiple)[source]

Randomly subsample from a trajectory

Given a list of trajectories, return a single trajectory shrink_multiple times smaller than the total number of frames in trajectories taken by random sampling of frames from trajectories

Parameters:

trajectories : list of mdtraj.Trajectory

list of trajectories to sample from

shrink_multiple : int

fraction to shrint by

Note that this method will modify the trajectory objects that you pass in :

@CHECK is the note above actually true? :

Versions