Description Usage Arguments Value Examples
Normalise a square matrix by dividing elements by the sum of off-diagonal entries row-wise. Note: sets diagonal to zero.
1 | row_normalised(adj, keep_values = FALSE)
|
adj |
Adjacency matrix to normalise |
keep_values |
Whether to keep off-diagonal values
or normalise fully (defaults to |
A matrix based on adj
with zero diagonals
and off-diagonal elements sum to one.
1 2 3 | d <- 5
adj <- matrix(1, d, d)
row_normalised(adj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.