vector.normalise: Normalise a vector

View source: R/linalg.R

vector.normaliseR Documentation

Normalise a vector

Description

Normalise a vector

Usage

vector.normalise(v, q = 2, na.rm = FALSE)

Arguments

v

a vector of real numbers

q

a nonnegative real number or Inf

na.rm

boolean, whether to remove NA before calculation

Value

normalised version of this vector


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.