View source: R/spatial_weights.R
spatial_lap_of_gauss | R Documentation |
This function computes the spatial Laplacian of Gaussian for a given coordinate matrix using a specified sigma value.
spatial_lap_of_gauss(coord_mat, sigma = 2)
coord_mat |
A numeric matrix representing coordinates |
sigma |
Numeric, the sigma parameter for the Gaussian smoother (default is 2) |
A sparse symmetric matrix representing the computed spatial Laplacian of Gaussian
# Create an example coordinate matrix
coord_mat <- matrix(c(1, 2, 3, 4, 5, 6), nrow = 3, ncol = 2)
# Compute the spatial Laplacian of Gaussian with sigma = 2
result <- spatial_lap_of_gauss(coord_mat, sigma = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.