Transform values from the unit interval back to their original scale
Source:R/bound.R
scale_to_original.RdTransform values from the unit interval back to their original scale
Arguments
- scaled_vals
A
numericvector corresponding to re-scaled values in the unit interval, to be re-scaled to the original interval.- max_orig
A
numericscalar value giving the maximum of the values on the original scale.- min_orig
A
numericscalar value giving the minimum of the values on the original scale.
Value
A numeric vector of the same length as scaled_vals,
where the values are re-scaled to lie in their original/natural interval.
Details
A back-transformation that returns values computed in the unit
interval to their original scale. This is used in re-scaling updated TML
estimates back to their natural scale. Undoes scale_to_unit.