autoconv | R Documentation |
autoconv
computes the linear convolution of a numeric vector with itself.
It is based on the fft
function and is twicked to achieve maximum performance.
autoconv(x)
x |
a real or complex vector |
The speed of calculation for the linear convolution depends upon the number of factors in the number representing the vector length. This implementation maximizes calculation speed for vectors of dyadic length, or lengths with a single factor.
The linear auto convolution of a given vector with itself, which is equivalent with its inner product.
Alessandro Cardinali
A. Cardinali and G.P. Nason (2017). Locally Stationary Wavelet Packet Processes: Basis Selection and Model Fitting. Journal of Time Series Analysis, 38:2, 151-174.
fft
, convolve
.
v <- rnorm(n = 64) vv <- autoconv(x = v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.