
Rescale Values Based on Original Scale Factors
rescale.RdThis function applies a reverse operation of normalization for a numeric vector x
based on the scale factors derived from an original vector orig_x. It effectively
attempts to map the values in x back to their original scale by applying
the inverse operations of scaling and translation based on the minimum and
maximum values found in orig_x. The process involves scaling x by the
maximum value (after subtracting the minimum value) of orig_x and then
adding the minimum value of orig_x to each element.