unit: Make input vector unit length, i.e. norm == 1

View source: R/utils.R

unitR Documentation

Make input vector unit length, i.e. norm == 1

Description

Make input vector unit length, i.e. norm == 1

Usage

unit(vector)

Arguments

vector

a vector

Value

a unit length vector

See Also

Other helpers: deg(), rad()

Examples

unit(c(1,2,3))


euctrl-pru/nvctr documentation built on April 14, 2024, 9:43 p.m.