/** * The Savitzky-Golay weight matrix, and a bounded cache of recent ones. * * The matrix depends only on the window size, the polynomial order and the * derivative, never on the data, so it is a constant across a run of spectra. * Building one costs thousands of recursive `gramPoly` calls. */ /** * The weight matrix for a window, built once per shape rather than once per * call. * * Slots are compared on the three numbers, not on a key built from them, so * there is no string allocation per call. The caller must not mutate the * result. * @param windowSize - Number of points in the window. * @param polynomial - Polynomial grade. * @param derivative - Derivative order. * @returns The weight vectors, one per position in the window. */ export declare function cachedWeights(windowSize: number, polynomial: number, derivative: number): Float64Array[]; //# sourceMappingURL=weights.d.ts.map