Maps x from the unit interval back to the original range
\([\text{low}, \text{high}]\): \(x \cdot (\text{high} - \text{low}) + \text{low}\).
Lifecycle
Deprecated since spDBL 1.2.0 and will be removed in a future release.
The first call in a session warns; set
options(spDBL.warn_deprecated = FALSE) to silence it.
Examples
u <- c(0, 0.25, 1)
x <- scale_back_uniform(u, low = -1, high = 3)
#> Warning: scale_back_uniform() is deprecated since spDBL 1.2.0 and will be removed in a future release. It comes from the original research code; new work should use calibration_prepare() and calibration_fit().
x
#> [1] -1 0 3
all.equal(scale_uniform(x, low = -1, high = 3), u)
#> Warning: scale_uniform() is deprecated since spDBL 1.2.0 and will be removed in a future release. It comes from the original research code; new work should use calibration_prepare() and calibration_fit().
#> [1] TRUE
