Function to calculate the tapered DFT.
taperDFT(x, freq = 2 * pi * (1:length(x))/length(x), regularization.type = "1", p = 0.1)
time series vector.
frequency vector.
character. if "1": sum of the taper equals to n, if "2": square sum of the taper equals to n. Default is "1".
proprotion of taper.
Complex valued tapered DFT vector.
Tapered DFT. The default taper is a Tukey's (or Cosine-bell) taper.
fft2
# NOT RUN { set.seed(123) x <- arima.sim(model=list(ar=0.7), n=100) v <- taperDFT(x) # }
Run the code above in your browser using DataLab