R/kernel.R
hgwr_exponential.Rd
Compute exponential kernel weights exp(-d / bw).
exp(-d / bw)
hgwr_exponential(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_exponential(d, bw = 1)