org.HdrHistogram
Class DoublePercentileIterator

java.lang.Object
  extended by 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
DoublePercentileIterator(DoubleHistogram histogram, int percentileTicksPerHalfDistance)
           
 
Method Summary
 boolean hasNext()
           
 DoubleHistogramIterationValue next()
           
 void remove()
           
 void reset(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
 

Constructor Detail

DoublePercentileIterator

public DoublePercentileIterator(DoubleHistogram histogram,
                                int percentileTicksPerHalfDistance)
Parameters:
histogram - The histogram this iterator will operate on
percentileTicksPerHalfDistance - 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:
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 © 2014. All rights reserved.