Rescales a numeric vector to a specified range using min-max scaling. This is a generalized form of min-max normalization allowing any output range.
Details
The scaled values are computed as: $$x_{scaled} = \frac{x - \min(x)}{\max(x) - \min(x)} \cdot (r_{max} - r_{min}) + r_{min}$$