9#ifndef IMPSTATISTICS_PARTITIONAL_CLUSTERING_WITH_CENTER_H
10#define IMPSTATISTICS_PARTITIONAL_CLUSTERING_WITH_CENTER_H
12#include <IMP/statistics/statistics_config.h>
15IMPSTATISTICS_BEGIN_NAMESPACE
26 :
public PartitionalClustering {
32#if !defined(SWIG) && !defined(IMP_DOXYGEN)
37 : PartitionalClustering(
"k-means"),
40 centers_(reps.size()) {
41 for (
unsigned int i = 0; i < centers_.size(); ++i) {
49 unsigned int get_number_of_clusters()
const override;
56IMPSTATISTICS_END_NAMESPACE
Compute a distance metric between two points.
A Cartesian vector in D-dimensions.
A more IMP-like version of the std::vector.
const Ints & get_cluster(unsigned int i) const override
Return the list of indexes in the ith cluster.
int get_cluster_representative(unsigned int i) const override
Return the index of an item that "typifies" the ith cluster.
Vector< VectorD<-1 > > VectorKDs
IMP::Vector< Int > Ints
Standard way to pass a bunch of Int values.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.