IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::statistics::RecursivePartitionalClusteringMetric Class Reference

Represent a metric for clustering data that has already been clustered once. More...

#include <IMP/statistics/RecursivePartitionalClusteringMetric.h>

Inheritance diagram for IMP::statistics::RecursivePartitionalClusteringMetric:

Detailed Description

Represent a metric for clustering data that has already been clustered once.

To use it, cluster things once, then create one of these with the metric you want (created with the original data). When you pass this metric to the clustering algorithm, it will cluster the centers. You can extract the clustering of the original elements using create_full_clustering().

Definition at line 25 of file RecursivePartitionalClusteringMetric.h.

Public Member Functions

 RecursivePartitionalClusteringMetric (Metric *metric, PartitionalClustering *clustering)
PartitionalClustering * create_full_clustering (PartitionalClustering *center_cluster)
double get_distance (unsigned int i, unsigned int j) const override
unsigned int get_number_of_items () const override
virtual std::string get_type_name () const override
virtual ::IMP::VersionInfo get_version_info () const override
 Get information about the module and version of the object.
Public Member Functions inherited from IMP::statistics::Metric
double get_weight (unsigned int i) const
 Return a weight for the point.
Public Member Functions inherited from IMP::Object
CheckLevel get_check_level () const
 get_derived_object (self)
 Return this object cast to the most derived subclass.
LogLevel get_log_level () const
void set_check_level (CheckLevel l)
void set_log_level (LogLevel l)
 Set the logging level used in this object.
const std::string & get_name () const
 Get the (not necessarily unique) name of this object.
void set_name (std::string name)
void set_was_used (bool tf) const
void show (std::ostream &out=std::cout) const
virtual void clear_caches ()

Additional Inherited Members

Protected Member Functions inherited from IMP::statistics::Metric
 Metric (std::string name)
virtual double do_get_weight (unsigned int i) const
 By default return 1.0.
Protected Member Functions inherited from IMP::Object
 Object (std::string name)
 Construct an object with the given name.
virtual void do_destroy ()

Constructor & Destructor Documentation

◆ ~RecursivePartitionalClusteringMetric()

virtual IMP::statistics::RecursivePartitionalClusteringMetric::~RecursivePartitionalClusteringMetric ( )
virtual

Definition at line 36 of file RecursivePartitionalClusteringMetric.h.

Member Function Documentation

◆ get_distance()

double IMP::statistics::RecursivePartitionalClusteringMetric::get_distance ( unsigned int i,
unsigned int j ) const
overridevirtual

◆ get_number_of_items()

unsigned int IMP::statistics::RecursivePartitionalClusteringMetric::get_number_of_items ( ) const
overridevirtual

◆ get_type_name()

virtual std::string IMP::statistics::RecursivePartitionalClusteringMetric::get_type_name ( ) const
overridevirtual

Reimplemented from IMP::Object.

Definition at line 36 of file RecursivePartitionalClusteringMetric.h.

◆ get_version_info()

virtual ::IMP::VersionInfo IMP::statistics::RecursivePartitionalClusteringMetric::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::Object.

Definition at line 36 of file RecursivePartitionalClusteringMetric.h.


The documentation for this class was generated from the following file: