Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Written by Gil Tene of Azul Systems, and released to the public domain, as explained at http://creativecommons.org/publicdomain/zero/1.0/

Author(s):
Gil Tene
 
 
 package org.HdrHistogram;
 
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.
    DoubleHistogram histogram;

    
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%.
    public void reset(final int percentileTicksPerHalfDistance) {
        .reset(percentileTicksPerHalfDistance);
    }

    

Parameters:
histogram The histogram this iterator will operate on
percentileTicksPerHalfDistance The number of iteration steps per half-distance to 100%.
    public DoublePercentileIterator(final DoubleHistogram histogramfinal int percentileTicksPerHalfDistance) {
        this. = histogram;
                histogram.integerValuesHistogram,
                percentileTicksPerHalfDistance
        );
    }
    @Override
    public boolean hasNext() {
        return .hasNext();
    }
    @Override
        return ;
    }
    @Override
    public void remove() {
    }
New to GrepCode? Check out our FAQ X