View source: R/general_helpers.R
rescale_weights | R Documentation |
Given a matrix with values for neighborhood influences the function rescales
the matrix in order to get an appropriate weight matrix used for the function ssMRCD
.
rescale_weights(W)
W |
weight matrix with diagonals equal to zero and at least one positive entry per row. |
An appropriately scaled weight matrix.
ssMRCD, local_outliers_ssMRCD, geo_weights
W = matrix(c(0, 1, 2,
1, 0, 1,
2, 1, 0), nrow = 3)
rescale_weights(W)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.