@Test public void testMeanAndSum() { double mean = 0; double sum = calculateSumMean(sumObj, meanObj); double sum2 = (Double) (sumObj.getResult()); assertEquals(sum, sum2, TOLERANCE); mean = sum / (ARRAY_DIMENSIONS - 1); double mean2 = (Double) (meanObj.getResult()); assertEquals(mean, mean2, 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; }