rescaling

Share:

Description

Scale vector x in original space forward to rescaled space (usually [-1,1]^d)

Usage

1
forwardRescale(x, cobra)

Arguments

x

a vector in the original input space

cobra

list from cobraInit, we need here

originalL

a vector with lower bounds in original input space

originalU

a vector with upper bounds in original input space

newlower

a number, the rescaled lower bound for all dimensions

newupper

a number, the rescaled upper bound for all dimensions

Value

z, scaled version of vector x

See Also

inverseRescale

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.