DataType
- The type of the data being clustered.ClusterType
- The type of the clusters being created.public static class AgglomerativeClusterer.HierarchyNode<DataType,ClusterType extends Cluster<DataType>> extends BinaryClusterHierarchyNode<DataType,ClusterType>
Modifier and Type | Field and Description |
---|---|
protected double |
childrenDivergence
The divergence between the two children, if they exist.
|
firstChild, secondChild
cluster
Constructor and Description |
---|
HierarchyNode()
Creates a new
HierarchyNode . |
HierarchyNode(ClusterType cluster)
Creates a new
HierarchyNode . |
HierarchyNode(ClusterType cluster,
AgglomerativeClusterer.HierarchyNode<DataType,ClusterType> firstChild,
AgglomerativeClusterer.HierarchyNode<DataType,ClusterType> secondChild,
double childrenDivergence)
Creates a new
HierarchyNode . |
Modifier and Type | Method and Description |
---|---|
double |
getChildrenDivergence()
Gets the divergence between the two children, if they exist;
otherwise, 0.0.
|
void |
setChildrenDivergence(double childrenDivergence)
Sets the divergence between the two children.
|
getChildren, getFirstChild, getSecondChild, hasChildren, setFirstChild, setSecondChild
getCluster, getMembers, setCluster
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
protected double childrenDivergence
public HierarchyNode()
HierarchyNode
.public HierarchyNode(ClusterType cluster)
HierarchyNode
.cluster
- The cluster associated with the node.public HierarchyNode(ClusterType cluster, AgglomerativeClusterer.HierarchyNode<DataType,ClusterType> firstChild, AgglomerativeClusterer.HierarchyNode<DataType,ClusterType> secondChild, double childrenDivergence)
HierarchyNode
.cluster
- The cluster associated with the node.firstChild
- The first child.secondChild
- The second child.childrenDivergence
- The divergence between the children.public double getChildrenDivergence()
public void setChildrenDivergence(double childrenDivergence)
childrenDivergence
- The divergence between the two children.