powered by
Apply a spectral filter
smooth.rank(x, k)
Returns a vector the same length as x.
x
Time series data
Number of frequencies
Passes the mean and the k frequencies with the highest amplitude. The remainder of the spectrum is filtered out.
k
y = smooth.rank(deaths,2) plotc(deaths,y)
Run the code above in your browser using DataLab