vecUnitize: Unitize vector

View source: R/cpaProgs.R

vecUnitizeR Documentation

Unitize vector

Description

Normalize a vector to have unit length

Usage

vecUnitize(xx)

Arguments

xx

vector

Value

normalized vector of unit length

Examples

xx <- c(0.5, 0.1, 0.6, 0.9)
vecUnitize(xx)

mooredf22/protlocassign documentation built on Sept. 13, 2023, 3:57 p.m.