Learn R Programming

msPCA (version 0.1.0)

orthogonality_violation: Orthogonality constraint violation

Description

Computes the orthogonality constraint violation defined as the distance (infinity norm) between \(U^\top U\) and the identity matrix.

Usage

orthogonality_violation(U)

Value

A float.

Arguments

U

A matrix. Each column correspond to an p-dimensional PC.

Examples

Run this code
library(datasets)
TestMat <- cor(datasets::mtcars)
mspcares <- mspca(TestMat, 2, c(4,4))
orthogonality_violation(mspcares$x_best)

Run the code above in your browser using DataLab