Iterator<DoubleHistogramIterationValue>
public class DoubleLogarithmicIterator extends Object implements Iterator<DoubleHistogramIterationValue>
DoubleHistogram
values values in logarithmically increasing levels. The
iteration is performed in steps that start at valueUnitsInFirstBucket and increase exponentially according to
logBase, 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 | Description |
---|---|
DoubleLogarithmicIterator(DoubleHistogram histogram,
double valueUnitsInFirstBucket,
double logBase) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
|
DoubleHistogramIterationValue |
next() |
|
void |
remove() |
|
void |
reset(double valueUnitsInFirstBucket,
double logBase) |
Reset iterator for re-use in a fresh iteration over the same histogram data set.
|
forEachRemaining
public DoubleLogarithmicIterator(DoubleHistogram histogram, double valueUnitsInFirstBucket, double logBase)
histogram
- The histogram this iterator will operate onvalueUnitsInFirstBucket
- the size (in value units) of the first value bucket steplogBase
- the multiplier by which the bucket size is expanded in each iteration step.public void reset(double valueUnitsInFirstBucket, double logBase)
valueUnitsInFirstBucket
- the size (in value units) of the first value bucket steplogBase
- the multiplier by which the bucket size is expanded in each iteration step.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 © 2019. All rights reserved.