normalizeTrace: Rescales a square matrix such that the trace is the same as...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Rescales a square matrix such that the trace is the same as the dimension.

Usage

1

Arguments

x

A square numeric matrix to be rescaled.

Details

This is computed as {x=as.matrix(x); x/mean(diag(x))}.

Value

A numeric matrix.

Author(s)

Long Qu

See Also

base::diag

Examples

1
2
3
4
5
	set.seed(3456L)
	A=tcrossprod(runif(10L))
	A0 = normalizeTrace(A)
	sum(diag(A0)) - nrow(A)
	


Search within the varComp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.