rescale_weights {ssMRCD}R 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)


[Package ssMRCD version 0.1.0 Index]