IMP logo
IMP Reference Guide  2.13.0
The Integrative Modeling Platform
IMP::em2d::SingleLinkage Class Reference

Functor for hierarchical clustering based on single linkage. More...

#include <IMP/em2d/hierarchical_clustering.h>

Detailed Description

Functor for hierarchical clustering based on single linkage.

Definition at line 111 of file hierarchical_clustering.h.

Public Member Functions

double operator() (unsigned int id1, unsigned int id2, const ClusterSet &cluster_set, const FloatsList &distances) const
 
void show (std::ostream &out) const
 

Member Function Documentation

double IMP::em2d::SingleLinkage::operator() ( unsigned int  id1,
unsigned int  id2,
const ClusterSet cluster_set,
const FloatsList distances 
) const
Parameters
[in]id1identity of cluster 1 to merge
[in]id2identity of cluster 2 to merge
[in]cluster_setlinkage matrix describing the contents of clusters so far.
[in]distancesA NxN matrix of distances(i,j) between the individual members to cluster
Returns
Minimal distance between members of the clusters
Note
the id of an isolated member n<N is n. The id of the cluster formed at step i is i+N.

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