convolve_matrix: Convolve a Data Matrix with a Kernel Matrix

View source: R/label_sim.R

convolve_matrixR Documentation

Convolve a Data Matrix with a Kernel Matrix

Description

Performs a convolution operation on a given data matrix 'X' using a specified kernel matrix 'Kern'.

Usage

convolve_matrix(X, Kern, normalize = FALSE)

Arguments

X

A data matrix to be convolved.

Kern

A kernel matrix used for the convolution.

normalize

A logical flag indicating whether to normalize the kernel matrix before performing the convolution (default: FALSE).

Value

A matrix resulting from the convolution of the data matrix 'X' with the kernel matrix 'Kern'.


bbuchsbaum/neighborweights documentation built on April 1, 2024, 8:41 p.m.