120 void cut(
const Size cluster_quantity,
const std::vector<BinaryTreeNode> & tree, std::vector<std::vector<Size> > & clusters);
133 void cut(
const Size cluster_quantity,
const std::vector<BinaryTreeNode> & tree, std::vector<std::vector<BinaryTreeNode> > & subtrees);
143 String newickTree(
const std::vector<BinaryTreeNode> & tree,
const bool include_distance =
false);
Elements of a binary tree used to represent a hierarchical clustering process.
Definition: BinaryTreeNode.h:49
Bundles analyzing tools for a clustering (given as sequence of BinaryTreeNode's)
Definition: ClusterAnalyzer.h:52
std::vector< float > cohesion(const std::vector< std::vector< Size > > &clusters, const DistanceMatrix< float > &original)
Method to calculate the cohesions of a certain partition.
void cut(const Size cluster_quantity, const std::vector< BinaryTreeNode > &tree, std::vector< std::vector< Size > > &clusters)
Method to calculate a partition resulting from a certain step in clustering given by the number of cl...
ClusterAnalyzer & operator=(const ClusterAnalyzer &source)
assignment operator
virtual ~ClusterAnalyzer()
destructor
std::vector< float > averageSilhouetteWidth(const std::vector< BinaryTreeNode > &tree, const DistanceMatrix< float > &original)
Method to calculate the average silhouette widths for a clustering.
ClusterAnalyzer(const ClusterAnalyzer &source)
copy constructor
float averagePopulationAberration(Size cluster_quantity, std::vector< BinaryTreeNode > &tree)
Method to calculate the average aberration from average population in partition resulting from a cert...
std::vector< float > dunnIndices(const std::vector< BinaryTreeNode > &tree, const DistanceMatrix< float > &original, const bool tree_from_singlelinkage=false)
Method to calculate Dunns indices for a clustering.
void cut(const Size cluster_quantity, const std::vector< BinaryTreeNode > &tree, std::vector< std::vector< BinaryTreeNode > > &subtrees)
Method to calculate subtrees from a given tree resulting from a certain step in clustering given by t...
String newickTree(const std::vector< BinaryTreeNode > &tree, const bool include_distance=false)
Returns the hierarchy described by a clustering tree as Newick-String.
ClusterAnalyzer()
default constructor
A two-dimensional distance matrix, similar to OpenMS::Matrix.
Definition: DistanceMatrix.h:68
A more convenient string class.
Definition: String.h:61
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
bool compareBinaryTreeNode(const BinaryTreeNode &x, const BinaryTreeNode &y)
returns the value of (x.distance < y.distance) for use with sort