Performs the maximum normalization dividing every element of the vector with the maximum absolute value.

max_normalization(x = numeric(0))

Arguments

x

Numeric vector.

Value

Normalized numeric vector.

Examples

{ max_normalization(c(1,2,3,4)) }
#> [1] 0.25 0.50 0.75 1.00