scale_to_original: Transform values from the unit interval back to their...

Description Usage Arguments Details Value

View source: R/bound.R

Description

Transform values from the unit interval back to their original scale

Usage

1
scale_to_original(scaled_vals, max_orig, min_orig)

Arguments

scaled_vals

A numeric vector corresponding to re-scaled values in the unit interval, to be re-scaled to the original interval.

max_orig

A numeric scalar value giving the maximum of the values on the original scale.

min_orig

A numeric scalar value giving the minimum of the values on the original scale.

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.

Value

A numeric vector of the same length as scaled_vals, where the values are re-scaled to lie in their original/natural interval.


txshift documentation built on Oct. 23, 2020, 8:27 p.m.