normalize_vector: Normalize a vector by max absolute value

Description Usage Arguments Value Examples

Description

Normalize a vector by max absolute value

Usage

1

Arguments

x

numeric vector, a vector of numbers

Value

numeric vector, the vector divided by the largest absolute value in the vector

Examples

1
2
a <- c(1,2,3)
normalize_vector(a)

CrumpLab/RsemanticLibrarian documentation built on Nov. 11, 2019, 1:04 p.m.