Package elki.clustering.kmeans
Class KDTreePruningKMeans.KDNode
- java.lang.Object
-
- elki.clustering.kmeans.KDTreePruningKMeans.KDNode
-
- Enclosing class:
- KDTreePruningKMeans<V extends NumberVector>
public static class KDTreePruningKMeans.KDNode extends java.lang.ObjectNode of the k-d-tree used internally.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intendEnd index of child nodes (exclusive).(package private) double[]halfwidthHalf width of the node(package private) KDTreePruningKMeans.KDNodeleftChildLeft child node(package private) double[]midMidpoint(package private) KDTreePruningKMeans.KDNoderightChildRight child node(package private) intstartFirst index of child nodes.(package private) double[]sumSum of all points associated with this node
-
Constructor Summary
Constructors Constructor Description KDNode(Relation<? extends NumberVector> relation, DBIDArrayIter iter, int start, int end)Constructor.
-
-
-
Field Detail
-
sum
double[] sum
Sum of all points associated with this node
-
mid
double[] mid
Midpoint
-
halfwidth
double[] halfwidth
Half width of the node
-
leftChild
KDTreePruningKMeans.KDNode leftChild
Left child node
-
rightChild
KDTreePruningKMeans.KDNode rightChild
Right child node
-
start
int start
First index of child nodes.
-
end
int end
End index of child nodes (exclusive).
-
-
Constructor Detail
-
KDNode
public KDNode(Relation<? extends NumberVector> relation, DBIDArrayIter iter, int start, int end)
Constructor.- Parameters:
relation- Dataiter- Iterator on the sorted ids.start- First indexend- Last index (exclusive)
-
-