SpikeInterpolation { static int arrayIndex(double[] values, double val) { return Doubles.asList(values).indexOf(val); }    }
@Test public void testGetValueIndexInArray() { assertEquals(1, SpikeInterpolation.arrayIndex(useAr, 1.3)); assertEquals(3, SpikeInterpolation.arrayIndex(useAr, 2)); }