UNPKG

@thi.ng/transducers-stats

Version:

Transducers for statistical / technical analysis

14 lines 550 B
import type { Transducer } from "@thi.ng/transducers"; /** * Like * [`movingAverage`](https://docs.thi.ng/umbrella/transducers/functions/movingAverage.html), * but using more efficient linked list as sliding window buffer. * * Note: the number of results will be `period-1` less than the number of * processed inputs. * * @param period - */ export declare function sma(period: number): Transducer<number, number>; export declare function sma(period: number, src: Iterable<number>): IterableIterator<number>; //# sourceMappingURL=sma.d.ts.map