norm1 {sSDR}R Documentation

Normalize a vector

Description

Normalize a vector

Usage

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

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

[Package sSDR version 1.2.0 Index]