MatVar2 {CJIVE} | R 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)
```

[Package

*CJIVE*version 0.1.0 Index]