public class DoubleLinearIterator extends Object implements Iterator<DoubleHistogramIterationValue>
DoubleHistogram values in linear steps. The iteration is
performed in steps of valueUnitsPerBucket in size, terminating when all recorded histogram
values are exhausted. Note that each iteration "bucket" includes values up to and including
the next bucket boundary value.| Constructor and Description |
|---|
DoubleLinearIterator(DoubleHistogram histogram,
double valueUnitsPerBucket) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
DoubleHistogramIterationValue |
next() |
void |
remove() |
void |
reset(double valueUnitsPerBucket)
Reset iterator for re-use in a fresh iteration over the same histogram data set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic DoubleLinearIterator(DoubleHistogram histogram, double valueUnitsPerBucket)
histogram - The histogram this iterator will operate onvalueUnitsPerBucket - The size (in value units) of each bucket iteration.public void reset(double valueUnitsPerBucket)
valueUnitsPerBucket - The size (in value units) of each bucket iteration.public boolean hasNext()
hasNext in interface Iterator<DoubleHistogramIterationValue>public DoubleHistogramIterationValue next()
next in interface Iterator<DoubleHistogramIterationValue>public void remove()
remove in interface Iterator<DoubleHistogramIterationValue>Copyright © 2016. All rights reserved.