|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.util.kdtree.TerminalNode<T>
T
- the type of the data object object associated with the patternfinal class TerminalNode<T>
This class represents a terminal node inside a k-d tree. The terminal nodes store the pattern and an optional data object associated with the pattern.
Constructor Summary | |
---|---|
TerminalNode(double[] pattern,
T data)
Creates a new terminal node. |
Method Summary | |
---|---|
T |
getData()
Returns the optional data object. |
double |
getDistance(double[] query)
Returns the (squared euclidean) distance to a query pattern. |
double[] |
getPattern()
Returns the pattern stored in the terminal node. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TerminalNode(double[] pattern, T data)
pattern
- the patterndata
- an optional data objectMethod Detail |
---|
public T getData()
null
.
public double[] getPattern()
public double getDistance(double[] query)
query
- a query pattern.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |