decompbaseortho: Gram-Schmidt algorithm

Description Usage Arguments Details Value Examples

View source: R/decompbaseorthofunction.R

Description

Orthonormalization of an input matrix with the Gram-Schmidt algorithm.

Usage

1

Arguments

data

Input matrix of dimension n * p; each column is a variable.

Details

Performs an orthonormalization of the input matrix, recording the columns that are linear combination of the previous ones.

Value

U

The orthonormal basis obtained from data.

nonind

Set of variables with no contribution.

trueind

Set of variables with contribution.

rank

Rank of the input matrix, calculated with the function rankMatrix .

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
x1=rnorm(100)
x2=rnorm(100)
x3=cbind(x1,x2,x1+x2)

dec=decompbaseortho(x3)
dec$nonind
dec$trueind
dec$rank

## End(Not run)

mht documentation built on May 2, 2019, 11:49 a.m.