conv2 | R Documentation |
Compute the two-dimensional convolution of two matrices.
conv2(a, b, shape = c("full", "same", "valid"))
a , b |
Input matrices, coerced to numeric. |
shape |
Subsection of convolution, partially matched to:
|
Convolution of input matrices, returned as a matrix.
Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
conv
, convolve
a <- matrix(1:16, 4, 4)
b <- matrix(1:9, 3,3)
cnv <- conv2(a, b)
cnv <- conv2(a, b, "same")
cnv <- conv2(a, b, "valid")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.