norm_vec: Normalise a vector to have length 1

View source: R/multivariate.R

norm_vecR Documentation

Normalise a vector to have length 1

Description

Returns the normalised vector, where the sum of squares is equal to 1

Usage

norm_vec(x)

Arguments

x

numeric vector

Value

numeric vector

Examples

x <- rnorm(5)
norm_vec(x)

dicook/mulgar documentation built on April 17, 2025, 4:33 a.m.