double_center_distance_matrix {spatialRF} | R Documentation |
Double centers a distance matrix
Description
Generates a double-centered matrix (row and column means are zero) from the weights of a distance matrix (see weights_from_distance_matrix()
) and a distance threshold. This is a required step before the computation of Moran's Eigenvector Maps.
Usage
double_center_distance_matrix (
distance.matrix = NULL,
distance.threshold = 0
)
Arguments
distance.matrix |
Distance matrix. Default: |
distance.threshold |
Numeric, positive, in the range of values of |
Value
A double-centered matrix of the same dimensions as x
.
See Also
weights_from_distance_matrix()
, mem()
, mem_multithreshold()
Examples
if(interactive()){
#loading the distance matrix
data(distance_matrix)
x <- double_center_distance_matrix(
distance.matrix = distance_matrix
)
x
}
[Package spatialRF version 1.1.4 Index]