KrisLibrary  1.0.0
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
Statistics::HierarchicalClustering Class Reference

Classes

struct  Cmp
 
struct  distances
 

Public Types

enum  Type { SingleLinkage, CompleteLinkage, AverageLinkage }
 

Public Member Functions

void Build (const std::vector< Vector > &data, int K, Type type=SingleLinkage)
 Builds the clustering using standard Euclidean distance.
 
void Build (const Matrix &dist, int K, Type type=SingleLinkage)
 Builds the clustering for a custom distance matrix.
 
const std::vector< int > & Cluster (int i) const
 Returns the indices of the data elements in the i'th cluster.
 

Public Attributes

std::vector< std::vector< int > > A
 

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