9 #ifndef IMPSTATISTICS_PARTITIONAL_CLUSTERING_WITH_CENTER_H
10 #define IMPSTATISTICS_PARTITIONAL_CLUSTERING_WITH_CENTER_H
12 #include <IMP/statistics/statistics_config.h>
15 IMPSTATISTICS_BEGIN_NAMESPACE
32 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
40 centers_(reps.size()) {
41 for (
unsigned int i = 0; i < centers_.size(); ++i) {
43 centers[i].coordinates_end());
50 unsigned int get_number_of_clusters()
const IMP_OVERRIDE;
57 IMPSTATISTICS_END_NAMESPACE
virtual int get_cluster_representative(unsigned int cluster_index) const =0
Compute a distance metric between two points.
virtual const Ints & get_cluster(unsigned int cluster_index) const =0
A Cartesian vector in D-dimensions.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A base class for clustering results where each item is in one cluster.