UNPKG

pandora-metrics

Version:
50 lines (49 loc) 1.42 kB
/** * A statistical snapshot of a {@link AbstractSnapshot}. */ import { Snapshot } from '../domain'; export declare abstract class AbstractSnapshot implements Snapshot { abstract getValue(quantile: number): any; abstract getValues(): number[]; abstract size(): number; abstract getMax(): number; abstract getMean(): number; abstract getMin(): number; abstract getStdDev(): number; /** * Returns the median value in the distribution. * * @return the median value */ getMedian(): number; /** * Returns the value at the 75th percentile in the distribution. * * @return the value at the 75th percentile */ get75thPercentile(): number; /** * Returns the value at the 95th percentile in the distribution. * * @return the value at the 95th percentile */ get95thPercentile(): number; /** * Returns the value at the 98th percentile in the distribution. * * @return the value at the 98th percentile */ get98thPercentile(): number; /** * Returns the value at the 99th percentile in the distribution. * * @return the value at the 99th percentile */ get99thPercentile(): number; /** * Returns the value at the 99.9th percentile in the distribution. * * @return the value at the 99.9th percentile */ get999thPercentile(): number; }