/* * This is a TypeScript port of the original Java version, which was written by * Gil Tene as described in * https://github.com/HdrHistogram/HdrHistogram * and released to the public domain, as explained at * http://creativecommons.org/publicdomain/zero/1.0/ */ /** * Represents a value point iterated through in a Histogram, with associated stats. * */ class HistogramIterationValue { valueIteratedTo: number; valueIteratedFrom: number; countAtValueIteratedTo: number; countAddedInThisIterationStep: number; totalCountToThisValue: number; totalValueToThisValue: number; percentile: number; percentileLevelIteratedTo: number; constructor() { this.reset(); } reset() { this.valueIteratedTo = 0; this.valueIteratedFrom = 0; this.countAtValueIteratedTo = 0; this.countAddedInThisIterationStep = 0; this.totalCountToThisValue = 0; this.totalValueToThisValue = 0; this.percentile = 0.0; this.percentileLevelIteratedTo = 0.0; } } export default HistogramIterationValue;