Breaking: ESM-only. require() no longer works.
- 34 window functions (was 18): added connes, powerOfSine, generalizedNormal, planckTaper, exponential, hannPoisson, cauchy, rifeVincent, confinedGaussian, kaiserBesselDerived, dolphChebyshev, taylor, dpss, ultraspherical, parzen, bohman
- Quantitative metrics:
enbw,scallopLoss,cola - Individual files:
import hann from 'window-function/hann' - Default + named exports: both
import hann fromandimport { hann } fromwork - TypeScript declarations included
- Scientific SVG plots for all windows (time domain + frequency response)
- Consolidated to ESM (
"type": "module") - Single
util.jsfor shared helpers and utilities - Zero dependencies (fourier-transform is devDependency for plot generation only)
- const hann = require('window-function/hann')
+ import hann from 'window-function/hann'The per-sample API fn(i, N, ...params) → number is unchanged.
- Added
applyandgeneratehelpers
- 18 window functions: rectangular, triangular, bartlett, welch, hann, hamming, cosine, blackman, exactBlackman, nuttall, blackmanNuttall, blackmanHarris, flatTop, bartlettHann, lanczos, gaussian, tukey