Learn R Programming

FIACH (version 0.1.2)

sinc: Sinc Pulse

Description

Creates a sinc with desired properties.

Usage

sinc(fh,fl,tw,sf,type,n)

Arguments

fh
High pass frequency in Hz.
fl
Low pass frequency in Hz.
tw
Transition width in Hz.
sf
sampling frequency in Hz.
type
string of either "low","high","band" depending on what you wish to do.
n
range over which filter is to be evaluated.

Value

outputs a sinc pulse evaluated over n.

Examples

Run this code
par(mfrow=c(2,1))
si<-sinc(fl=.08,tw=0,type="low",n=-40:40,sf=1/2.16)
ts.plot(si,ylab="",main="Sinc Pulse")
s<-rawPeriodogram(si,1/2.16)

Run the code above in your browser using DataLab