Description Usage Arguments Details Value Author(s) See Also Examples
Rescales a square matrix such that the trace is the same as the dimension.
1 |
x |
A square numeric matrix to be rescaled. |
This is computed as {x=as.matrix(x); x/mean(diag(x))}
.
A numeric matrix.
Long Qu
1 2 3 4 5 | set.seed(3456L)
A=tcrossprod(runif(10L))
A0 = normalizeTrace(A)
sum(diag(A0)) - nrow(A)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.