13 lines
336 B
TypeScript
13 lines
336 B
TypeScript
export default class ExponentiallyWeightedMovingAverage {
|
|
private _timePeriod;
|
|
private _tickInterval;
|
|
private _alpha;
|
|
private _count;
|
|
private _rate;
|
|
private TICK_INTERVAL;
|
|
constructor(timePeriod?: number, tickInterval?: number);
|
|
update(n: any): void;
|
|
tick(): void;
|
|
rate(timeUnit: any): number;
|
|
}
|