@svta/common-media-library
Version:
A common library for media playback in JavaScript
19 lines • 643 B
TypeScript
import type { ResourceTiming } from '../request/ResourceTiming.js';
import type { EwmaEstimatorOptions } from './EwmaEstimatorOptions.js';
import type { ThroughputEstimator } from './ThroughputEstimator.js';
/**
* Exponential Weighted Moving Average (EWMA) throughput estimator based on 2 half-lives
*
* @group Throughput
*
* @beta
*/
export declare class EwmaEstimator implements ThroughputEstimator {
private fastEwma;
private slowEwma;
constructor(options: EwmaEstimatorOptions);
sample(sample: ResourceTiming): void;
getEstimate(): number;
canEstimate(): boolean;
}
//# sourceMappingURL=EwmaEstimator.d.ts.map