public class PercentileIterator extends AbstractHistogramIterator implements java.util.Iterator<HistogramIterationValue>
| Modifier and Type | Field and Description |
|---|---|
(package private) double |
percentileLevelToIterateFrom |
(package private) double |
percentileLevelToIterateTo |
(package private) int |
percentileTicksPerHalfDistance |
(package private) boolean |
reachedLastRecordedValue |
arrayTotalCount, countAtThisValue, currentIndex, currentIterationValue, currentValueAtIndex, histogram, nextValueAtIndex, prevValueIteratedTo, totalCountToCurrentIndex, totalCountToPrevIndex, totalValueToCurrentIndex| Constructor and Description |
|---|
PercentileIterator(AbstractHistogram histogram,
int percentileTicksPerHalfDistance) |
| Modifier and Type | Method and Description |
|---|---|
(package private) double |
getPercentileIteratedFrom() |
(package private) double |
getPercentileIteratedTo() |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
(package private) void |
incrementIterationLevel() |
(package private) boolean |
reachedIterationLevel() |
private void |
reset(AbstractHistogram histogram,
int percentileTicksPerHalfDistance) |
void |
reset(int percentileTicksPerHalfDistance)
Reset iterator for re-use in a fresh iteration over the same histogram data set.
|
getValueIteratedTo, incrementSubBucket, next, remove, resetIteratorint percentileTicksPerHalfDistance
double percentileLevelToIterateTo
double percentileLevelToIterateFrom
boolean reachedLastRecordedValue
public PercentileIterator(AbstractHistogram histogram, int percentileTicksPerHalfDistance)
histogram - The histogram this iterator will operate onpercentileTicksPerHalfDistance - The number of equal-sized iteration steps per half-distance to 100%.public void reset(int percentileTicksPerHalfDistance)
percentileTicksPerHalfDistance - The number of iteration steps per half-distance to 100%.private void reset(AbstractHistogram histogram, int percentileTicksPerHalfDistance)
public boolean hasNext()
AbstractHistogramIteratorhasNext in interface java.util.Iterator<HistogramIterationValue>hasNext in class AbstractHistogramIteratorvoid incrementIterationLevel()
incrementIterationLevel in class AbstractHistogramIteratorboolean reachedIterationLevel()
reachedIterationLevel in class AbstractHistogramIteratordouble getPercentileIteratedTo()
getPercentileIteratedTo in class AbstractHistogramIteratordouble getPercentileIteratedFrom()
getPercentileIteratedFrom in class AbstractHistogramIterator