double min = Long.MAX_VALUE;
double max = Long.MIN_VALUE;
for (Alternative a : alternativesDefinition.getConsideredAlternatives()) {
for (Value v : leaf.getValues(a.getName()).getList()) {
INumericValue value = (INumericValue) v;
if (value.value() > max) {
max = value.value();
}
if (value.value() < min) {
min = value.value();
}
}
}
nt.defaults(min, max);
nt.setMode(TransformationMode.LINEAR);