Return a rescaled function
rescaleWrapper(fn, lower, upper, dimension, newlower, newupper)
function with argument x
to be rescaled
a vector with lower bounds in original input space
a vector with lower bounds in original input space
length of vector lower
and upper
a number, the rescaled lower bound for all dimensions
a number, the rescaled upper bound for all dimensions
newfn
, rescaled version of function fn