Package 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.-
Constructor Summary
ConstructorsConstructorDescriptionDoublePercentileIterator(DoubleHistogram histogram, int percentileTicksPerHalfDistance) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DoublePercentileIterator
- Parameters:
histogram- The histogram this iterator will operate onpercentileTicksPerHalfDistance- The number of iteration steps per half-distance to 100%.
-
-
Method Details
-
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:
hasNextin interfaceIterator<DoubleHistogramIterationValue>
-
next
- Specified by:
nextin interfaceIterator<DoubleHistogramIterationValue>
-
remove
public void remove()- Specified by:
removein interfaceIterator<DoubleHistogramIterationValue>
-