ArrayInterpolator1DDataBundle implements Interpolator1DDataBundle, Serializable { @Override public double[] getKeys() { return _keys; } ArrayInterpolator1DDataBundle(final double[] keys, final double[] values);  ArrayInterpolator1DDataBundle(final double[] keys, final double[] values, final boolean inputsSorted); @Override boolean containsKey(final Double key); @Override Double firstKey(); @Override Double firstValue(); @Override Double get(final Double key); @Override InterpolationBoundedValues getBoundedValues(final Double key); @Override double[] getKeys(); @Override int getLowerBoundIndex(final Double value); @Override Double getLowerBoundKey(final Double value); @Override double[] getValues(); @Override Double higherKey(final Double key); @Override Double higherValue(final Double key); @Override Double lastKey(); @Override Double lastValue(); @Override int size(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override void setYValueAtIndex(final int index, final double y);  }
@Test public void particularSort() { double[] keys = new double[] { 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1 }; double[] values = new double[] { 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1 }; Interpolator1DDataBundle model = new ArrayInterpolator1DDataBundle(keys, values); double[] resultKeys = model.getKeys(); assertEquals(0.0, resultKeys[0], 1e-10); }