R/kernel.R
hgwr_gaussian.Rd
Compute Gaussian kernel weights exp(-0.5 * (d / bw)^2).
exp(-0.5 * (d / bw)^2)
hgwr_gaussian(d, bw)
Numeric vector or matrix of nonnegative distances.
Positive bandwidth value, or a vector of bandwidths compatible with the columns of d.
d
Numeric weights with the same shape as d.
d <- c(0, 0.5, 1, 2) hgwr_gaussian(d, bw = 1)