spatial_lap_of_gauss: Compute the spatial Laplacian of Gaussian for a coordinate...

View source: R/spatial_weights.R

spatial_lap_of_gaussR Documentation

Compute the spatial Laplacian of Gaussian for a coordinate matrix

Description

This function computes the spatial Laplacian of Gaussian for a given coordinate matrix using a specified sigma value.

Usage

spatial_lap_of_gauss(coord_mat, sigma = 2)

Arguments

coord_mat

A numeric matrix representing coordinates

sigma

Numeric, the sigma parameter for the Gaussian smoother (default is 2)

Value

A sparse symmetric matrix representing the computed spatial Laplacian of Gaussian

Examples

# 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)


bbuchsbaum/graphweights documentation built on April 4, 2024, 7:19 p.m.