Learn R Programming

FIACH (version 0.1.2)

kaiserWin: Kaiser Window

Description

Creates a windowed sinc pulse using a kaiser window.

Usage

kaiserWin(fh,fl,tw,sf,d.sa,d.pbr,type)

Arguments

fh
High pass frequency in Hz.
fl
Low pass frequency in Hz
tw
Transition width in Hz.
sf
Sampling frequency in Hz.
d.sa
Desired Stopband Attenuation specified in dB.
d.pbr
Desired Passband ripple specified in dB.
type
string of either "low","high","band" depending on what you wish to do.

Value

Outputs FIR filter coefficients to desired specifications.

Examples

Run this code
kais<-kaiserWin(fl=.08,tw=.025,sf=1/2.16,d.sa=70,d.pbr=.1,type="low")
par(mfrow=c(2,1))
ts.plot(kais,main="Low Pass Kaiser Window")
rawPeriodogram(kais,1/2.16)

Run the code above in your browser using DataLab