Learn R Programming

CJIVE (version 0.1.0)

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

Value

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

Arguments

X

a matrix of any size

Examples

Run this code
X = matrix(rnorm(10), 5,2)
MatVar2(X)

Run the code above in your browser using DataLab