vnorm: Norm a Vector to Unit Length

View source: R/vnorm.r

vnormR 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)


fungible documentation built on March 31, 2023, 5:47 p.m.

Related to vnorm in fungible...