
Min-Max Normalization and Re-Transformation
norm_minmax.RdScales numeric data to the [0, 1] range using min-max normalization, or re-transforms normalized data back to its original scale. The behavior depends on the specified direction.
Arguments
- x
A numeric vector, matrix, or array to be scaled or re-transformed.
- min
The minimum value used for scaling. Required for both directions, but typically set to
min(x)whendirection = "RT".- max
The maximum value used for scaling. Required for both directions, but typically set to
max(x)whendirection = "RT".- direction
A character string indicating the direction of transformation:
"RT"(real to transformed) for normalization, or"TR"(transformed to real) for re-scaling. Default is"RT".