convolve_filter | R Documentation |
convolution of vector with matrix
convolve_filter(x, y, remove_partial, reverse)
x |
vector to convolve with y (numeric vector) |
y |
numeric matrix to convolve with x (column by column convolution) (numeric matrix) |
remove_partial |
keep the end values or fill with NA (boolean) |
reverse |
should x be reversed before convolution (boolean) |
numeric matrix of convolved values
a <- convolve_filter(x = 1:100,
y = c(1:10, rep(0, 90)),
remove_partial = FALSE,
reverse = TRUE)
b <- stats::convolve(1:100, rev(1:10), type = 'filter')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.