rescale_weights: Rescale Weight Matrix

View source: R/general_helpers.R

rescale_weightsR Documentation

Rescale Weight Matrix

Description

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.

Usage

rescale_weights(W)

Arguments

W

weight matrix with diagonals equal to zero and at least one positive entry per row.

Value

An appropriately scaled weight matrix.

See Also

ssMRCD, local_outliers_ssMRCD, geo_weights

Examples


W = matrix(c(0, 1, 2,
             1, 0, 1,
             2, 1, 0), nrow = 3)
rescale_weights(W)


ssMRCD documentation built on Sept. 11, 2024, 5:14 p.m.