norm: Vector normalization

Description Usage Arguments Value Author(s) Examples

Description

Normalizes a vector to have length equal to 1.

Usage

1
norm(vec)

Arguments

vec

A numerical vector

Value

The normalized vector

Author(s)

Solve Sæbø

Examples

1
2
3
data(BCdata)
x <- norm(BCdata$X[,1])
crossprod(x)

therimalaya/lplsReg documentation built on May 14, 2019, 8:36 a.m.