/* * This is a AssemblyScript 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: u64; valueIteratedFrom: u64; countAtValueIteratedTo: u64; countAddedInThisIterationStep: u64; totalCountToThisValue: u64; totalValueToThisValue: u64; percentile: f64; percentileLevelIteratedTo: f64; constructor() { this.reset(); } reset(): void { 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;