vnorm {fungible}R Documentation

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

Author(s)

Niels Waller

Examples


 x <- rnorm(5)
 v <- vnorm(x)
 print(v)


[Package fungible version 2.4.4 Index]