window

From STX Wiki
Jump to navigationJump to search
window

General window function

Usage: window(type, x, scale, par)
Parameters:
type=0 -> none (square) type=1 -> whanning
type=2 -> whamming type=3 -> wblackman
type=4 -> wkaiser type=5 -> wbartlett
type=6 -> wtaprect type=7 -> wnuttall
type=8 -> wflattop type=9 -> wgauss

The arguments x, scale and par are the same as above.

arguments: x The window length (scalar, >2), the signal (vector or matrix, nrow(x)>2). If x is a matrix, every column is multiplied with the window. scale The scaling (0=unscaled, 1=scaled for rms(sig) ~ rms(sig * wnd) par optional window parameters

The result is the signal window of length x or the signal multiplied by the window.

Navigation menu

Personal tools