Public Member Functions | |
| Particles | get_centers () const |
| std::string | get_cmm_string () const |
| unsigned int | get_particle_assignment (Particle *p) const |
| void | initialize (Model *m, const Particles &ps, const std::vector< FloatKey > &atts, unsigned int num_centers) |
| Initialize the proxy. | |
| void | log_header () const |
| void | run (Particles *ps=NULL) |
| Run the k-means algorithm. | |
Protected Member Functions | |
| void | log_summary (KMFilterCentersResults *ctrs, Float run_time, std::ostream &out=std::cout) const |
| void | reset () |
| void | set_default_values () |
Protected Attributes | |
|
std::map< Particle *, unsigned int > | assignment_ |
| std::vector< FloatKey > | atts_ |
| Particles | centroids_ |
| Float | clus_sep_ |
| Float | corr_coef_ |
| Float | damp_factor_ |
| KMData * | data_ |
| unsigned int | data_size_ |
| unsigned int | dim_ |
| DistributionType | distr_ |
| bool | is_calculated |
| bool | is_init_ |
| Float | kc_build_time_ |
| unsigned int | kcenters_ |
| KMLocalSearchLloyd * | lloyd_alg_ |
| Model * | m_ |
| unsigned int | max_dim_ |
| unsigned int | max_swaps_ |
| unsigned int | max_visit_ |
| unsigned int | n_color_ |
| bool | new_clust_ |
| bool | print_points_ |
| Particles | ps_ |
| unsigned int | seed_ |
| bool | show_assign_ |
| Float | std_dev_ |
| KMTerminationCondition | term_ |
| bool | validate_ |
| void IMP::statistics::KMLProxy::initialize | ( | Model * | m, | |
| const Particles & | ps, | |||
| const std::vector< FloatKey > & | atts, | |||
| unsigned int | num_centers | |||
| ) |
Initialize the proxy.
| [in] | m | IMP model |
| [in] | ps | The set of particles to apply the k-means on |
| [in] | atts | The set of attributes of the particles participating in the clustering |
| [in] | num_centers | The number of clusters |
| void IMP::statistics::KMLProxy::run | ( | Particles * | ps = NULL |
) |
Run the k-means algorithm.
| [in] | ps | a set of particles which are the initial k-means. If non are provided, the initial ones are set randomly. |