orthogonalVectors: Orthogonal vectors

View source: R/Utilities.R

orthogonalVectorsR Documentation

Orthogonal vectors

Description

Create orthogonal set of vectors that resemble the original input vectors.

Usage

orthogonalVectors(X, dim = 1, re = TRUE)

Arguments

X

a matrix with vectors as rows (default) or columns (see below).

dim

an integer specifying which dimension is the object dimension.

re

a logical indicating if vectors should be norm-scaled before orthogonalization and rescaled afterwards (default = TRUE).

Details

The input vectors are orthgonalized using singular value decomposition. To make the resulting vectors similar to the input vectors (not just any base for the same space) they are re-oriented towards the original vectors using Procrustes rotations.

To force the procedure to handle vectors of unequal magnitudes similarilly they are by default rescaled to norm vectors before orthogonalization and rescaled afterwards. This can be overridden using the re paramter.

See Also

EMSC EMSC_model plot.EMSC


EMSC documentation built on May 29, 2024, 3:07 a.m.