Package de.jungblut.clustering
Class AgglomerativeClustering.ClusterNode
- java.lang.Object
-
- de.jungblut.clustering.AgglomerativeClustering.ClusterNode
-
- Enclosing class:
- AgglomerativeClustering
public static class AgglomerativeClustering.ClusterNode extends java.lang.ObjectTree structure for containing information about linkages and distances.- Author:
- thomas.jungblut
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgglomerativeClustering.ClusterNodegetLeft()de.jungblut.math.DoubleVectorgetMean()AgglomerativeClustering.ClusterNodegetParent()AgglomerativeClustering.ClusterNodegetRight()doublegetSplitDistance()java.lang.StringtoString()
-
-
-
Method Detail
-
getMean
public de.jungblut.math.DoubleVector getMean()
- Returns:
- the mean between the two children. Used for distance calculations at merging time.
-
getSplitDistance
public double getSplitDistance()
- Returns:
- the distance between left and right cluster. (Based on their means).
-
getParent
public AgglomerativeClustering.ClusterNode getParent()
- Returns:
- the parent node, null if root.
-
getLeft
public AgglomerativeClustering.ClusterNode getLeft()
- Returns:
- the left child, null if not present.
-
getRight
public AgglomerativeClustering.ClusterNode getRight()
- Returns:
- the right child, null if not present.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-