Class CFTree.LeafIterator
- java.lang.Object
-
- elki.clustering.hierarchical.birch.CFTree.LeafIterator
-
- All Implemented Interfaces:
elki.utilities.datastructures.iterator.Iter
- Enclosing class:
- CFTree
public static class CFTree.LeafIterator extends java.lang.Object implements elki.utilities.datastructures.iterator.IterIterator over leaf nodes.- Author:
- Erich Schubert
-
-
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 elki.utilities.datastructures.iterator.Iteradvance()ClusteringFeatureget()Get the current leaf.booleanvalid()
-
-
-
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()
- Specified by:
validin interfaceelki.utilities.datastructures.iterator.Iter
-
get
public ClusteringFeature get()
Get the current leaf.- Returns:
- Current leaf (if valid,
nullotherwise).
-
advance
public elki.utilities.datastructures.iterator.Iter advance()
- Specified by:
advancein interfaceelki.utilities.datastructures.iterator.Iter
-
-