Class CFTree.LeafIterator
- java.lang.Object
-
- elki.clustering.hierarchical.birch.CFTree.LeafIterator
-
-
Field Summary
Fields Modifier and Type Field Description private ClusteringFeature
current
Current leaf entry.private java.util.ArrayList<ClusteringFeature>
queue
Queue of open ends.
-
Constructor Summary
Constructors Modifier Constructor Description private
LeafIterator(CFTree.TreeNode root)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iter
advance()
Moves the iterator forward to the next entry.ClusteringFeature
get()
Get the current leaf.boolean
valid()
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:Iter
Returns true if the iterator currently points to a valid object.
-
get
public ClusteringFeature get()
Get the current leaf.- Returns:
- Current leaf (if valid,
null
otherwise).
-
-