/** * Utility to compute the exponential weighted moving average * * inspired by https://github.com/shaka-project/shaka-player/blob/eaadb52627f0a0347390b201866585cce91fe9d0/lib/abr/ewma.js */ export declare class EwmAverage { /** * Current average */ average: number; private _alpha; private _estimate; private _totalWeight; /** * halflife is the time decay that holds half of the estimate value */ constructor(halflife: number); /** * Add a sample {value}, {weight} * weight = time delta */ add(value: number, weight: number): void; /** * Resets the rolling average (equivalent to 0 samples taken so far) */ reset(): void; } //# sourceMappingURL=ewmAverage.d.ts.map