norm1: Normalize a vector

Description Usage Arguments Details Value Examples

View source: R/sSDR.R

Description

Normalize a vector

Usage

1
norm1(v)

Arguments

v

A vector.

Details

This function normalizes any non-zero vector and returns a vector with the norm equal to 1.

Value

A vector with norm 1.

Examples

1
2
data <- gen.data(n=100)
y.norm1 <- norm1(data$y)

sSDR documentation built on May 1, 2019, 8:23 p.m.

Related to norm1 in sSDR...