9 #ifndef IMPSTATISTICS_PARTITIONAL_CLUSTERING_H
10 #define IMPSTATISTICS_PARTITIONAL_CLUSTERING_H
12 #include <IMP/statistics/statistics_config.h>
17 IMPSTATISTICS_BEGIN_NAMESPACE
28 virtual unsigned int get_number_of_clusters()
const = 0;
30 virtual const Ints& get_cluster(
unsigned int cluster_index)
const = 0;
32 virtual int get_cluster_representative(
unsigned int cluster_index)
const = 0;
41 IMPSTATISTICS_END_NAMESPACE
void validate_partitional_clustering(PartitionalClustering *pc, unsigned int n)
Check that the clustering is a valid clustering of n elements.
Various general useful macros for IMP.
Common base class for heavy weight IMP objects.
A shared base class to help in debugging and things.
Object(std::string name)
Construct an object with the given name.
#define IMP_REF_COUNTED_NONTRIVIAL_DESTRUCTOR(Name)
A base class for clustering results where each item is in one cluster.