Class AbstractStaticHistogram.Iter
- java.lang.Object
-
- elki.utilities.datastructures.histogram.AbstractStaticHistogram.Iter
-
- All Implemented Interfaces:
Histogram.Iter,ArrayIter,Iter
- Direct Known Subclasses:
DoubleHistogram.Iter,ObjHistogram.Iter
- Enclosing class:
- AbstractStaticHistogram
public abstract class AbstractStaticHistogram.Iter extends java.lang.Object implements Histogram.Iter
Iterator class to iterate over all bins.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intbinCurrent bin number
-
Constructor Summary
Constructors Constructor Description Iter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractStaticHistogram.Iteradvance()Moves the iterator forward to the next entry.AbstractStaticHistogram.Iteradvance(int count)Moves the iterator forward or backward by the given offset.doublegetCenter()Get the bin center.doublegetLeft()Get the bin minimum.intgetOffset()Get current iterator offset.doublegetRight()Get the bin maximum.AbstractStaticHistogram.Iterretract()Moves the iterator backward to the previous entry.AbstractStaticHistogram.Iterseek(int off)Moves the iterator to the given positionbooleanvalid()Returns true if the iterator currently points to a valid object.
-
-
-
Method Detail
-
getCenter
public double getCenter()
Description copied from interface:Histogram.IterGet the bin center.- Specified by:
getCenterin interfaceHistogram.Iter- Returns:
- bin center value
-
getLeft
public double getLeft()
Description copied from interface:Histogram.IterGet the bin minimum.- Specified by:
getLeftin interfaceHistogram.Iter- Returns:
- bin left value
-
getRight
public double getRight()
Description copied from interface:Histogram.IterGet the bin maximum.- Specified by:
getRightin interfaceHistogram.Iter- Returns:
- bin right value
-
valid
public boolean valid()
Description copied from interface:IterReturns true if the iterator currently points to a valid object.
-
advance
public AbstractStaticHistogram.Iter advance()
Description copied from interface:IterMoves the iterator forward to the next entry.
-
getOffset
public int getOffset()
Description copied from interface:ArrayIterGet current iterator offset.
-
advance
public AbstractStaticHistogram.Iter advance(int count)
Description copied from interface:ArrayIterMoves the iterator forward or backward by the given offset.
-
retract
public AbstractStaticHistogram.Iter retract()
Description copied from interface:ArrayIterMoves the iterator backward to the previous entry.
-
seek
public AbstractStaticHistogram.Iter seek(int off)
Description copied from interface:ArrayIterMoves the iterator to the given position
-
-