Class CFTree.LeafIterator
- java.lang.Object
-
- elki.clustering.hierarchical.birch.CFTree.LeafIterator
-
-
Field Summary
Fields Modifier and Type Field Description private ClusteringFeaturecurrentCurrent leaf entry.private java.util.ArrayList<ClusteringFeature>queueQueue of open ends.
-
Constructor Summary
Constructors Modifier Constructor Description privateLeafIterator(CFTree.TreeNode root)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iteradvance()Moves the iterator forward to the next entry.ClusteringFeatureget()Get the current leaf.booleanvalid()Returns true if the iterator currently points to a valid object.
-
-
-
Field Detail
-
queue
private java.util.ArrayList<ClusteringFeature> queue
Queue of open ends.
-
current
private ClusteringFeature current
Current leaf entry.
-
-
Constructor Detail
-
LeafIterator
private LeafIterator(CFTree.TreeNode root)
Constructor.- Parameters:
root- Root node
-
-
Method Detail
-
valid
public boolean valid()
Description copied from interface:IterReturns true if the iterator currently points to a valid object.
-
get
public ClusteringFeature get()
Get the current leaf.- Returns:
- Current leaf (if valid,
nullotherwise).
-
-