Normalizes a numeric vector by moving the decimal point of values of attribute A.
The number of decimal points moved depends on the maximum absolute value of A.
Usage
norm_decimal(x, na.rm = TRUE)
Value
A numeric vector with values typically in the range (-1, 1).
Arguments
x
A numeric vector.
na.rm
Logical. Should NA values be ignored when determining the scaling factor?
Default is TRUE.
Details
Formula: \(x' = \frac{x}{10^j}\)
where \(j\) is the smallest integer such that \(\max(|x'|) < 1\).
References
Han, J., Kamber, M., & Pei, J. (2011). Data mining: concepts and techniques (3rd ed.). Morgan Kaufmann.