87 template <
class U,
class V>
friend class GenoPheno;
91 :_scaling(dVec::Constant(1,1.0)),_shift(dVec::Zero(1)),_id(
true)
110 void compute_scaling(
const double *
lbounds,
117 denom =
denom.cwiseMin(std::numeric_limits<double>::max());
119 _shift = dVec::Constant(dim,
_intmax) - _scaling.cwiseProduct(
vubounds);
122 void scale_to_internal(dVec &
x,
125 x =
y.cwiseProduct(_scaling) + _shift;
128 void scale_to_f(
const dVec &
x,
132 y =
y.cwiseQuotient(_scaling);
135 bool is_id()
const {
return _id; }
137 void remove_dimensions(
const std::vector<int> &
k)
141 removeElement(_scaling,
i);
142 removeElement(_shift,
i);