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/minerva documentation built on Oct. 30, 2019, 5:50 a.m.