Run kcenters clustering algorithm.
Terminates either when k clusters have been identified, or when every data is clustered better than distance_cutoff.
Parameters: | metric : msmbuilder.metrics.AbstractDistanceMetric
trajectory : Trajectory or list of msmbuilder.Trajectory
k : {int, None}
distance_cutoff : {float, None}
seed : int, optional
|
---|
See also
References
[R6] | Beauchamp, MSMBuilder2 |
Methods
__init__(metric[, trajectories, ...]) | Run kcenters clustering algorithm. |
get_assignments | Assign the trajectories you passed into the constructor based on |
get_distances | Extract the distance from each frame to its assigned cluster kcenter |
get_generator_indices | Get the generator indices corresponding to frames in self.ptraj. |
get_generators_as_traj | Get a trajectory containing the generators |