everyutil
Version:
A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.
9 lines (8 loc) • 390 B
TypeScript
/**
* Calculates the standard deviation in a moving window over the input array.
* @author @dailker
* @param {number[]} array - The input array of numbers.
* @param {number} window - The window size for the rolling calculation.
* @returns {number[]} An array of rolling standard deviations.
*/
export declare function rollingStdDev(array: number[], window: number): number[];