square matrix of dimension $n\times n$, where $n$ is the number of
contextual units.
bandwidth
scalar numeric value specifying the bandwidth $h$
kernel
function applied to the distance matrix. By default NULL, in which
case the kernel function $$w_{ij}=f(d,h) =
\left(\frac{1}{2}\right)^{d_{ij}^2/h^2}$$ is used, where $w_{ij}, d_{ij}, h$ are elements of the weight matrix $\mathbf{W}
moran
a logical value specifying whether the proximity weights matrix
should have zeros in the diagonal. By default set to FALSE.
Value
A weights matrix of the same dimension as distance.matrix.