Learn R Programming

sSDR (version 1.2.0)

orthnormal: Gram-Schmidt orthonormalization

Description

Gram-Schmidt orthonormalization

Usage

orthnormal(X)

Arguments

X
a n x p matrix of n observations and p predictors.

Value

A n x p matrix of n observations and p predictors.

Details

This function orthonormalizes any n x p matrix.

Examples

Run this code
data <- gen.data(n=100)
x.orth <- orthnormal(data$X)

Run the code above in your browser using DataLab