vecUnitize: normalize vector xx to have unit length

Description Usage Arguments Value Examples

View source: R/cpaProgs.R

Description

normalize vector xx to have unit length

Usage

1

Arguments

xx

vector

Value

nomalized vector of unit length

Examples

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

mooredf22/protlocassign0p1p1 documentation built on Feb. 7, 2022, 1:55 a.m.