Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gs_orth_modified

Gram-Schmidt orthogonalization


Description

Either classical or modified algorithms. The modified algorithm is the more accurate.

Usage

gs_orth_modified(X)

gs_orth(X)

Arguments

X

a numerical matrix with ncol(X) <= nrow(X)

Value

A list with two components, Q, R, as usually defined.

Examples

set.seed(1234)
X <- matrix(rnorm(10*7), 10)
gs_orth_modified(X)
all.equal(gs_orth(X), gs_orth_modified(X))
all.equal(gs_orth_modified(X), givens_orth(X))

MASSExtra

Some 'MASS' Enhancements

v1.1.2
GPL-2 | GPL-3
Authors
Bill Venables
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.