@Test public void testMinMaxExtrema() { double[] minMax = calculateMaxMinExtrema(minObj, maxObj, extremaObj); double min = minMax[0]; double max = minMax[1]; double[] array = (double[]) (extremaObj.getResult()); double max2 = array[1]; double min2 = array[0]; assertEquals(min, min2, TOLERANCE); assertEquals(max, max2, TOLERANCE); double min3 = (Double) (minObj.getResult()); assertEquals(min, min3, TOLERANCE); double max3 = (Double) (maxObj.getResult()); assertEquals(max, max3, TOLERANCE); }
public abstract Object getResult();
Statistics { public abstract Object getResult(); }
Statistics { public abstract Object getResult();  }
Statistics { public abstract Object getResult();  abstract void addSample(double sample); abstract Object getResult(); abstract Long getNumSamples(); }
Statistics { public abstract Object getResult();  abstract void addSample(double sample); abstract Object getResult(); abstract Long getNumSamples(); final static String STATS_PROPERTY; }