@Test public void testMedianOddEven() { assertEquals(Double.valueOf(2), Double.valueOf(new Boxplot(new double[] { 1, 3, 2 }).median())); assertEquals(Double.valueOf(2.5), Double.valueOf(new Boxplot( new double[] { 3, 1, 3, 2 }).median())); }
public double median() { return m(2); }
Boxplot { public double median() { return m(2); } }
Boxplot { public double median() { return m(2); } Boxplot(Double[] values);  Boxplot(Collection<Double> values);  Boxplot(double[] values); }
Boxplot { public double median() { return m(2); } Boxplot(Double[] values);  Boxplot(Collection<Double> values);  Boxplot(double[] values); double median(); double q1(); double q3(); InterquatileRange innerFences(); InterquatileRange outerFences(); InterquatileRange fences(double m); double[] getValues(); double[] getValues(InterquatileRange fence); double[] filter(Predicate<Double> p); }
Boxplot { public double median() { return m(2); } Boxplot(Double[] values);  Boxplot(Collection<Double> values);  Boxplot(double[] values); double median(); double q1(); double q3(); InterquatileRange innerFences(); InterquatileRange outerFences(); InterquatileRange fences(double m); double[] getValues(); double[] getValues(InterquatileRange fence); double[] filter(Predicate<Double> p);  }