@thi.ng/transducers-stats
Version:
Transducers for statistical / technical analysis
14 lines • 485 B
TypeScript
import type { Transducer } from "@thi.ng/transducers";
/**
* @remarks
* Reference:
* https://en.wikipedia.org/wiki/Momentum_(technical_analysis)
*
* Note: the number of results will be `period` less than the number
* of processed inputs.
*
* @param period -
*/
export declare function momentum(period: number): Transducer<number, number>;
export declare function momentum(period: number, src: Iterable<number>): IterableIterator<number>;
//# sourceMappingURL=momentum.d.ts.map