powered by
Apply a low pass filter
smooth.fft(x, f)
Returns a vector the same length as x.
x
Time series data
Cut-off frequency, 0-1
The cut-off frequency is specified as a fraction. For example, c=.25 passes the lowest 25% of the spectrum.
c=.25
y = smooth.fft(deaths,.1) plotc(deaths,y)
Run the code above in your browser using DataLab