public class CoverTree.CoverTreeNode extends Object implements Serializable, RevisionHandler
Constructor and Description |
---|
CoverTreeNode()
Constructor for the class.
|
CoverTreeNode(Integer i,
double md,
double pd,
Stack<CoverTree.CoverTreeNode> childs,
int numchilds,
int s)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getRevision()
Returns the revision string.
|
boolean |
isALeaf()
Returns whether if the node is a leaf or not.
|
Instance |
p()
Returns the instance represented by the node.
|
public CoverTreeNode()
public CoverTreeNode(Integer i, double md, double pd, Stack<CoverTree.CoverTreeNode> childs, int numchilds, int s)
i
- The index of the Instance this node is associated with.md
- The distance of the furthest descendant.pd
- The distance of the node to its parent.childs
- Children of the node in a stack.numchilds
- The number of children of the node.s
- The scale/level of the node in the tree.public Instance p()
public boolean isALeaf()
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.