/** * @param histogram The histogram this iterator will operate on * @param percentileTicksPerHalfDistance The number of iteration steps per half-distance to 100%. */ public DoublePercentileIterator(final DoubleHistogram histogram, final int percentileTicksPerHalfDistance) { this.histogram = histogram; integerPercentileIterator = new PercentileIterator( histogram.integerValuesHistogram, percentileTicksPerHalfDistance ); iterationValue = new DoubleHistogramIterationValue(integerPercentileIterator.currentIterationValue); }
/** * @param histogram The histogram this iterator will operate on */ public DoubleRecordedValuesIterator(final DoubleHistogram histogram) { this.histogram = histogram; integerRecordedValuesIterator = new RecordedValuesIterator(histogram.integerValuesHistogram); iterationValue = new DoubleHistogramIterationValue(integerRecordedValuesIterator.currentIterationValue); }
/** * @param histogram The histogram this iterator will operate on */ public DoubleAllValuesIterator(final DoubleHistogram histogram) { this.histogram = histogram; integerAllValuesIterator = new AllValuesIterator(histogram.integerValuesHistogram); iterationValue = new DoubleHistogramIterationValue(integerAllValuesIterator.currentIterationValue); }
/** * @param histogram The histogram this iterator will operate on * @param valueUnitsPerBucket The size (in value units) of each bucket iteration. */ public DoubleLinearIterator(final DoubleHistogram histogram, final double valueUnitsPerBucket) { this.histogram = histogram; integerLinearIterator = new LinearIterator( histogram.integerValuesHistogram, (long) (valueUnitsPerBucket * histogram.getDoubleToIntegerValueConversionRatio()) ); iterationValue = new DoubleHistogramIterationValue(integerLinearIterator.currentIterationValue); }
/** * @param histogram The histogram this iterator will operate on * @param valueUnitsInFirstBucket the size (in value units) of the first value bucket step * @param logBase the multiplier by which the bucket size is expanded in each iteration step. */ public DoubleLogarithmicIterator(final DoubleHistogram histogram, final double valueUnitsInFirstBucket, final double logBase) { this.histogram = histogram; integerLogarithmicIterator = new LogarithmicIterator( histogram.integerValuesHistogram, (long) (valueUnitsInFirstBucket * histogram.getDoubleToIntegerValueConversionRatio()), logBase ); iterationValue = new DoubleHistogramIterationValue(integerLogarithmicIterator.currentIterationValue); }
/** * @param histogram The histogram this iterator will operate on * @param percentileTicksPerHalfDistance The number of iteration steps per half-distance to 100%. */ public DoublePercentileIterator(final DoubleHistogram histogram, final int percentileTicksPerHalfDistance) { this.histogram = histogram; integerPercentileIterator = new PercentileIterator( histogram.integerValuesHistogram, percentileTicksPerHalfDistance ); iterationValue = new DoubleHistogramIterationValue(integerPercentileIterator.currentIterationValue); }
/** * @param histogram The histogram this iterator will operate on */ public DoubleAllValuesIterator(final DoubleHistogram histogram) { this.histogram = histogram; integerAllValuesIterator = new AllValuesIterator(histogram.integerValuesHistogram); iterationValue = new DoubleHistogramIterationValue(integerAllValuesIterator.currentIterationValue); }
/** * @param histogram The histogram this iterator will operate on */ public DoubleRecordedValuesIterator(final DoubleHistogram histogram) { this.histogram = histogram; integerRecordedValuesIterator = new RecordedValuesIterator(histogram.integerValuesHistogram); iterationValue = new DoubleHistogramIterationValue(integerRecordedValuesIterator.currentIterationValue); }
/** * @param histogram The histogram this iterator will operate on * @param valueUnitsPerBucket The size (in value units) of each bucket iteration. */ public DoubleLinearIterator(final DoubleHistogram histogram, final double valueUnitsPerBucket) { this.histogram = histogram; integerLinearIterator = new LinearIterator( histogram.integerValuesHistogram, (long) (valueUnitsPerBucket * histogram.getDoubleToIntegerValueConversionRatio()) ); iterationValue = new DoubleHistogramIterationValue(integerLinearIterator.currentIterationValue); }
/** * @param histogram The histogram this iterator will operate on * @param valueUnitsInFirstBucket the size (in value units) of the first value bucket step * @param logBase the multiplier by which the bucket size is expanded in each iteration step. */ public DoubleLogarithmicIterator(final DoubleHistogram histogram, final double valueUnitsInFirstBucket, final double logBase) { this.histogram = histogram; integerLogarithmicIterator = new LogarithmicIterator( histogram.integerValuesHistogram, (long) (valueUnitsInFirstBucket * histogram.getDoubleToIntegerValueConversionRatio()), logBase ); iterationValue = new DoubleHistogramIterationValue(integerLogarithmicIterator.currentIterationValue); }