smooth.fft: Apply a low pass filter

View source: R/itsmr.R

smooth.fftR Documentation

Apply a low pass filter

Description

Apply a low pass filter

Usage

smooth.fft(x, f)

Arguments

x

Time series data

f

Cut-off frequency, 0-1

Details

The cut-off frequency is specified as a fraction. For example, c=.25 passes the lowest 25% of the spectrum.

Value

Returns a vector the same length as x.

Examples

y = smooth.fft(deaths,.1)
plotc(deaths,y)

itsmr documentation built on Aug. 6, 2022, 9:08 a.m.