projections: Projection and Orthogonalisation

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

Functions to project one matrix onto another, or to ortghogonalise it against the other.

Usage

1
2
3
project(M, N)
orth(M, N)
Corth(M, N)

Arguments

M

matrix to be projected or orthogonalised

N

matrix to be projected onto or orthogonalised against

Details

project(M, N) calculates the projection of M onto N, i.e., N (N' N)^(-1) N' M.

orth(M, N) orthogonalises M with respect to N, i.e., it calculates the projection of M onto the orthogonal space of N: M - N (N' N)^(-1) N' M.

Corth(M, N) calculates the coefficient matrix needed to orthogonalise future matrices, that is, (N' N)^(-1) N' M. Future matrices m and n can be orthogonalised with m - n %*% Corth(M, N).

Value

A matrix.

Note

The functions need to be opitmised, both for speed and numerical accurracy.

Author(s)

Bjørn-Helge Mevik

See Also

lspls, lsplsCv, predict.lspls

Examples

1
##FIXME

lspls documentation built on May 2, 2019, 12:19 p.m.