Learn R Programming

gsignal (version 0.3-7)

kaiser: Kaiser window

Description

Return the filter coefficients of a kaiser window of length n.

Usage

kaiser(n, beta = 0.5)

Value

Kaiser window, returned as a vector.

Arguments

n

Window length, specified as a positive integer.

beta

Shape factor, specified as a positive real scalar. The parameter beta affects the side lobe attenuation of the Fourier transform of the window. Default: 0.5

Author

Kurt Hornik, Kurt.Hornik@ci.tuwien.ac.at,
Paul Kienzle, pkienzle@users.sf.net.
Conversion to R by Geert van Boxtel G.J.M.vanBoxtel@gmail.com.

Details

The Kaiser, or Kaiser-Bessel, window is a simple approximation of the DPSS window using Bessel functions, discovered by James Kaiser.


        besselI(0, Beta * sqrt(1-(2*x/m)^2))
k(x) =  -------------------------------------,  -m/2 <= x <= m/2
        besselO(0, Beta)
The variable parameter \(\beta\) determines the trade-off between main lobe width and side lobe levels of the spectral leakage pattern. Increasing \(\beta\) widens the main lobe and decreases the amplitude of the side lobes (i.e., increases the attenuation).

Examples

Run this code

k <- kaiser(200, 2.5)
plot (k, type = "l", xlab = "Samples", ylab =" Amplitude")

Run the code above in your browser using DataLab