Skip to content

Function: windowFunction()

ts
function windowFunction(name, n): Float64Array;

Defined in: stats/signal.ts:21

Sample a window function over n points.

hann is the sane default; hamming trades a touch of leakage for a lower first sidelobe; blackman suppresses sidelobes hardest at the cost of resolution; bartlett (triangular) is cheap; rectangular is no window at all — use it only when the frame already contains whole periods.

Parameters

ParameterType
nameWindowName
nnumber

Returns

Float64Array

MIT licensed. WebGL2 required.