Learn R Programming

ssMRCD (version 1.1.0)

rescale_weights: 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)

Value

An appropriately scaled weight matrix.

Arguments

W

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

See Also

ssMRCD, local_outliers_ssMRCD, geo_weights

Examples

Run this code

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

Run the code above in your browser using DataLab