public void recordValueWithExpectedInterval(final double value, final double expectedIntervalBetweenValueSamples)
            throws ArrayIndexOutOfBoundsException {
        long criticalValueAtEnter = recordingPhaser.writerCriticalSectionEnter();
        try {
            activeHistogram.recordValueWithExpectedInterval(value, expectedIntervalBetweenValueSamples);
        } finally {
            recordingPhaser.writerCriticalSectionExit(criticalValueAtEnter);
        }
    }
public void recordValueWithExpectedInterval ( final double value , final double expectedIntervalBetweenValueSamples ) throws ArrayIndexOutOfBoundsException { long criticalValueAtEnter = recordingPhaser . writerCriticalSectionEnter ( ) ; try { activeHistogram . recordValueWithExpectedInterval ( value , expectedIntervalBetweenValueSamples ) ; } finally { recordingPhaser . writerCriticalSectionExit ( criticalValueAtEnter ) ; } }
Record a value
<p>
To compensate for the loss of sampled values when a recorded value is larger than the expected
interval between value samples, Histogram will auto-generate an additional series of decreasingly-smaller
(down to the expectedIntervalBetweenValueSamples) value records.
<p>
See related notes {@link org.HdrHistogram_voltpatches.DoubleHistogram#recordValueWithExpectedInterval(double, double)}
for more explanations about coordinated omission and expected interval correction.
*
@param value The value to record
@param expectedIntervalBetweenValueSamples If expectedIntervalBetweenValueSamples is larger than 0, add
auto-generated value records as appropriate if value is larger
than expectedIntervalBetweenValueSamples
@throws ArrayIndexOutOfBoundsException (may throw) if value is exceeds highestTrackableValue