powered by
Calculate hexagonal nearest neighbor weights using Gaussian filter.
HnnWeight(dist.hnn, dist.k = NULL, mu = 0, sigma = 1)
A hexagonal nearest neighbor distance matrix.
The maximum distance used to calculate the weight. Default is NULL and all neighbor weights are calculated.
NULL
The mean of Gaussian filter, default is 0.
The standard deviation of Gaussian filter, default is 1.
A weight matrix.
# NOT RUN { { data.use <- quakes[1:100,] dist.use <- as.matrix(dist(data.use[,1:2])) res <- HnnWeight(dist.use, mu = 0, sigma = 0.5) } # }
Run the code above in your browser using DataLab