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 throughDoubleHistogramvalues 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
Constructors Constructor Description DoublePercentileIterator(DoubleHistogram histogram, int percentileTicksPerHalfDistance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()DoubleHistogramIterationValuenext()voidremove()voidreset(int percentileTicksPerHalfDistance)Reset iterator for re-use in a fresh iteration over the same histogram data set.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
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%.
-
-
Method Detail
-
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
public DoubleHistogramIterationValue next()
- Specified by:
nextin interfaceIterator<DoubleHistogramIterationValue>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<DoubleHistogramIterationValue>
-
-