org.HdrHistogram
Class DoublePercentileIterator
java.lang.Object
org.HdrHistogram.DoublePercentileIterator
- All Implemented Interfaces:
- Iterator<DoubleHistogramIterationValue>
public class DoublePercentileIterator
- extends Object
- implements Iterator<DoubleHistogramIterationValue>
Used for iterating through DoubleHistogram values values according to percentile levels. The iteration is
performed in steps that start at 0% and reduce their distance to 100% according to the
percentileTicksPerHalfDistance parameter, ultimately reaching 100% when all recorded histogram
values are exhausted.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoublePercentileIterator
public DoublePercentileIterator(DoubleHistogram histogram,
int percentileTicksPerHalfDistance)
- Parameters:
histogram - The histogram this iterator will operate onpercentileTicksPerHalfDistance - The number of iteration steps per half-distance to 100%.
reset
public void reset(int percentileTicksPerHalfDistance)
- Reset iterator for re-use in a fresh iteration over the same histogram data set.
- Parameters:
percentileTicksPerHalfDistance - The number of iteration steps per half-distance to 100%.
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<DoubleHistogramIterationValue>
next
public DoubleHistogramIterationValue next()
- Specified by:
next in interface Iterator<DoubleHistogramIterationValue>
remove
public void remove()
- Specified by:
remove in interface Iterator<DoubleHistogramIterationValue>
Copyright © 2015. All rights reserved.