UNPKG

@thi.ng/transducers-stats

Version:

Transducers for statistical / technical analysis

12 lines 458 B
import type { Transducer } from "@thi.ng/transducers"; /** * https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average * * Note: the number of results will be `period-1` less than the number * of processed inputs. * * @param period - */ export declare function ema(period: number): Transducer<number, number>; export declare function ema(period: number, src: Iterable<number>): IterableIterator<number>; //# sourceMappingURL=ema.d.ts.map