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