UNPKG

@thi.ng/transducers-stats

Version:

Transducers for statistical / technical analysis

17 lines 675 B
import type { Transducer } from "@thi.ng/transducers"; /** * Moving standard deviation, calculates mean square error to SMA and yields * sequence of `sqrt(error / period)`. * * https://en.wikipedia.org/wiki/Bollinger_Bands * * Note: the number of results will be `period-1` less than the number of * processed inputs. * * @param period - * @param scale - */ export declare function sd(period?: number, scale?: number): Transducer<number, number>; export declare function sd(src: Iterable<number>): IterableIterator<number>; export declare function sd(period: number, scale: number, src: Iterable<number>): IterableIterator<number>; //# sourceMappingURL=sd.d.ts.map