Class ObjHistogram.Iter
- java.lang.Object
-
- elki.utilities.datastructures.histogram.AbstractStaticHistogram.Iter
-
- elki.utilities.datastructures.histogram.ObjHistogram.Iter
-
- All Implemented Interfaces:
Histogram.Iter,ArrayIter,Iter
- Enclosing class:
- ObjHistogram<T>
public class ObjHistogram.Iter extends AbstractStaticHistogram.Iter implements Histogram.Iter
Iterator class.- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.utilities.datastructures.histogram.AbstractStaticHistogram.Iter
bin
-
-
Constructor Summary
Constructors Constructor Description Iter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjHistogram.Iteradvance()Moves the iterator forward to the next entry.ObjHistogram.Iteradvance(int count)Moves the iterator forward or backward by the given offset.TgetValue()Get the value of the bin.ObjHistogram.Iterretract()Moves the iterator backward to the previous entry.ObjHistogram.Iterseek(int off)Moves the iterator to the given position-
Methods inherited from class elki.utilities.datastructures.histogram.AbstractStaticHistogram.Iter
getCenter, getLeft, getOffset, getRight, valid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.utilities.datastructures.histogram.Histogram.Iter
getCenter, getLeft, getRight
-
-
-
-
Method Detail
-
getValue
public T getValue()
Get the value of the bin.- Returns:
- Bin value
-
advance
public ObjHistogram.Iter advance()
Description copied from interface:IterMoves the iterator forward to the next entry.
-
advance
public ObjHistogram.Iter advance(int count)
Description copied from interface:ArrayIterMoves the iterator forward or backward by the given offset.- Specified by:
advancein interfaceArrayIter- Overrides:
advancein classAbstractStaticHistogram.Iter- Parameters:
count- offset to move forward or backwards- Returns:
- Iterator
-
retract
public ObjHistogram.Iter retract()
Description copied from interface:ArrayIterMoves the iterator backward to the previous entry.- Specified by:
retractin interfaceArrayIter- Overrides:
retractin classAbstractStaticHistogram.Iter- Returns:
- Iterator
-
seek
public ObjHistogram.Iter seek(int off)
Description copied from interface:ArrayIterMoves the iterator to the given position- Specified by:
seekin interfaceArrayIter- Overrides:
seekin classAbstractStaticHistogram.Iter- Parameters:
off- Seek offset- Returns:
- Iterator
-
-