fftw_convolve: fftw_convolve

View source: R/convolution_fft.R

fftw_convolveR Documentation

fftw_convolve

Description

Designed to be used for fast centered moving averages

Usage

fftw_convolve(x, y, normalize = TRUE, align = "center")

Arguments

x

the data series

y

the filter

normalize

do you want the filter normalized

align

what alignment

Value

convolution of data series and filter

Examples

set.seed(37)
len <- 999
x <- cumsum(rnorm(len))
y <- rep(1, 3)
sub <- c(1, 50)
plot(1:len, x, type='o', pch = 20, xlim = sub, cex = 0.4)
points(1:len, fftw_convolve(x, y), type = 'o', col='red', pch = 20, cex = 0.4)

jkennel/aquifer documentation built on July 31, 2022, 11:33 p.m.