Learn R Programming

SACOBRA (version 1.2)

forwardRescale: Forward Rescaling

Description

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

Usage

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