50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


fungible (version 2.2)

vnorm: Norm a Vector to Unit Length

Description

Norm a vector to unit length.

Usage

vnorm(x)

Arguments

x

An n by 1 vector.

Value

the scaled (i.e., unit length) input vector

Examples

Run this code
# NOT RUN {
 x <- rnorm(5)
 v <- vnorm(x)
 print(v)

# }

Run the code above in your browser using DataLab