MatVar2: Alternative calculation - Matrix variation (i.e. Frobenius...

View source: R/Utilities.R

MatVar2R Documentation

Alternative calculation - Matrix variation (i.e. Frobenius norm)

Description

Calculates the Frobenius norm of a matrix, which can be used as a measure of total variation

Usage

MatVar2(X)

Arguments

X

a matrix of any size

Value

The Frobenius norm of the matrix X, calculated as the square root of the trace of t(X)

Examples

X = matrix(rnorm(10), 5,2)
MatVar2(X)

CJIVE documentation built on Jan. 22, 2023, 1:24 a.m.