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) {
49 unsigned int get_number_of_clusters()
const override;
56 IMPSTATISTICS_END_NAMESPACE
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual int get_cluster_representative(unsigned int cluster_index) const =0
Return the index of an item that "typifies" the ith cluster.
Compute a distance metric between two points.
virtual const Ints & get_cluster(unsigned int cluster_index) const =0
Return the list of indexes in the ith cluster.
A Cartesian vector in D-dimensions.
A base class for clustering results where each item is in one cluster.