Class DoubleHistogram.Iter
- java.lang.Object
-
- elki.utilities.datastructures.histogram.AbstractStaticHistogram.Iter
-
- elki.utilities.datastructures.histogram.DoubleHistogram.Iter
-
- All Implemented Interfaces:
Histogram.Iter
,ArrayIter
,Iter
- Enclosing class:
- DoubleHistogram
public class DoubleHistogram.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 DoubleHistogram.Iter
advance()
Moves the iterator forward to the next entry.DoubleHistogram.Iter
advance(int count)
Moves the iterator forward or backward by the given offset.double
getValue()
Get the value of the bin.DoubleHistogram.Iter
retract()
Moves the iterator backward to the previous entry.DoubleHistogram.Iter
seek(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 double getValue()
Get the value of the bin.- Returns:
- Bin value
-
advance
public DoubleHistogram.Iter advance()
Description copied from interface:Iter
Moves the iterator forward to the next entry.
-
advance
public DoubleHistogram.Iter advance(int count)
Description copied from interface:ArrayIter
Moves the iterator forward or backward by the given offset.- Specified by:
advance
in interfaceArrayIter
- Overrides:
advance
in classAbstractStaticHistogram.Iter
- Parameters:
count
- offset to move forward or backwards- Returns:
- Iterator
-
retract
public DoubleHistogram.Iter retract()
Description copied from interface:ArrayIter
Moves the iterator backward to the previous entry.- Specified by:
retract
in interfaceArrayIter
- Overrides:
retract
in classAbstractStaticHistogram.Iter
- Returns:
- Iterator
-
seek
public DoubleHistogram.Iter seek(int off)
Description copied from interface:ArrayIter
Moves the iterator to the given position- Specified by:
seek
in interfaceArrayIter
- Overrides:
seek
in classAbstractStaticHistogram.Iter
- Parameters:
off
- Seek offset- Returns:
- Iterator
-
-