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 May 29, 2024, 8:28 a.m.