key0 = 1. + 3. / (nKeys - 1) * i;
}
key0 = 1.;
for (int i = 1; i < nKeys; ++i) {
final double key = 1. + 3. / (nKeys - 1) * i;
assertTrue(function.evaluate(resultPos, key).getData()[1] - function.evaluate(resultPos, key0).getData()[1] <= 0.);
// System.out.println(key + "\t" + function.evaluate(result, key).getData()[1] + "\t" + function.evaluate(resultPos, key).getData()[1]);
key0 = 1. + 3. / (nKeys - 1) * i;
}
key0 = 5.;
for (int i = 1; i < nKeys; ++i) {