GS_process: Gram-Schmidt Process

Description Usage Arguments Value Examples

View source: R/Gram_Schmidt.R

Description

Applies the Gram-Schimdt Process to a set of vectors

Usage

1
GS_process(X, type = "orthogonal")

Arguments

X

a matrix of numerical vectors

type

Can be either "orthonormal" or "orthogonal". If "Orthonormal" then resulting vectores are all normalized to the standard basis.

Value

The resulting matrix

Examples

1
2
3
4
v = rnorm(n = 200)
A = matrix(v, ncol = 5)

B = GS_process(A)

pedrocava/mathr documentation built on May 29, 2020, 8:32 p.m.