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 in logarithmically increasing levels. The iteration is performed in steps that start at valueUnitsInFirstBucket and increase exponentially according to logBase, terminating when all recorded histogram values are exhausted. Note that each iteration "bucket" includes values up to and including the next bucket boundary value.
    DoubleHistogram histogram;

    
Reset iterator for re-use in a fresh iteration over the same histogram data set.

Parameters:
valueUnitsInFirstBucket the size (in value units) of the first value bucket step
logBase the multiplier by which the bucket size is expanded in each iteration step.
    public void reset(final double valueUnitsInFirstBucketfinal double logBase) {
                (long) (valueUnitsInFirstBucket * .),
                logBase
        );
    }

    

Parameters:
histogram The histogram this iterator will operate on
valueUnitsInFirstBucket the size (in value units) of the first value bucket step
logBase the multiplier by which the bucket size is expanded in each iteration step.
    public DoubleLogarithmicIterator(final DoubleHistogram histogramfinal double valueUnitsInFirstBucket,
                                     final double logBase) {
        this. = histogram;
                histogram.integerValuesHistogram,
                (long) (valueUnitsInFirstBucket * histogram.doubleToIntegerValueConversionRatio),
                logBase
        );
    }
    @Override
    public boolean hasNext() {
        return .hasNext();
    }
    @Override
        return ;
    }
    @Override
    public void remove() {
    }
New to GrepCode? Check out our FAQ X