@Test
//TODO if this interpolator cannot get the answer right then an exception should be thrown
public void testFlat() {
final RandomEngine random = new MersenneTwister64(MersenneTwister.DEFAULT_SEED);
final double x1 = 10 * random.nextDouble();
final double x2 = 10 * random.nextDouble();
final double x3 = 10 * random.nextDouble();
// Fails utterly for flat surface since the variogram function will be zero for all r
final InterpolatorND interpolator = new KrigingInterpolatorND(1.99);
final InterpolatorNDDataBundle dataBundle = interpolator.getDataBundle(FLAT_DATA);
assertEquals(INTERPOLATOR.interpolate(dataBundle, new double[] {x1, x2, x3}), 0, 0);