Cluster

A tree for defining hierarchical clusters.

Members

Functions

isLeaf
bool isLeaf()

True if this cluster doesn't have children.

nLeafNodes
int nLeafNodes()

The number of leaf nodes in this cluster.

opApply
int opApply(int delegate(ref Cluster) dg)

Iterate over the leaf nodes.

Variables

distance
double distance;
index
size_t index;

The index of the data w.r.t. matrix, if this is a leaf node, or size_t.max if this is not a leaf node.

left
Cluster* left;
name
string name;

The name of the sample, populated only for leaf nodes.

right
Cluster* right;

Meta