@thi.ng/transducers-stats
Version:
Transducers for statistical / technical analysis
15 lines • 547 B
TypeScript
import type { Transducer } from "@thi.ng/transducers";
/**
* Rate of change.
*
* https://en.wikipedia.org/wiki/Momentum_(technical_analysis)
*
* Note: the number of results will be `period` less than the number of
* processed inputs and no outputs will be produced if there were less than
* `period` input values.
*
* @param period -
*/
export declare function roc(period: number): Transducer<number, number>;
export declare function roc(period: number, src: Iterable<number>): IterableIterator<number>;
//# sourceMappingURL=roc.d.ts.map