orthogonality_violation: Orthogonality constraint violation

View source: R/main.R

orthogonality_violationR Documentation

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)

Arguments

U

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

Value

A float.

Examples

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

msPCA documentation built on May 16, 2026, 1:08 a.m.