UNPKG

@thi.ng/transducers-stats

Version:

Transducers for statistical / technical analysis

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