@Test public void testCalculateMedian4() { List<Number> values = new ArrayList<Number>(); values.add(7.0); values.add(2.0); values.add(3.0); values.add(5.0); values.add(4.0); values.add(6.0); values.add(1.0); double median = Statistics.calculateMedian(values); assertEquals(4.0, median, 0.0000001); }
public static double calculateMedian(List<Number> values) { return calculateMedian(values, true); }
Statistics { public static double calculateMedian(List<Number> values) { return calculateMedian(values, true); } }
Statistics { public static double calculateMedian(List<Number> values) { return calculateMedian(values, true); }  }
Statistics { public static double calculateMedian(List<Number> values) { return calculateMedian(values, true); }  static double calculateMean(Number[] values); static double calculateMean(Number[] values,
            boolean includeNullAndNaN); static double calculateMean(Collection<Number> values); static double calculateMean(Collection<Number> values,
            boolean includeNullAndNaN); static double calculateMedian(List<Number> values); static double calculateMedian(List<Number> values,
            boolean copyAndSort); static double calculateMedian(List<Number> values, int start, int end); static double calculateMedian(List<Number> values,
            int start, int end, boolean copyAndSort); static double getStdDev(Number[] data); static double[] getLinearFit(Number[] xData, Number[] yData); static double getSlope(Number[] xData, Number[] yData); static double getCorrelation(Number[] data1, Number[] data2); static double[][] getMovingAverage(Number[] xData,
                                              Number[] yData,
                                              int period); }
Statistics { public static double calculateMedian(List<Number> values) { return calculateMedian(values, true); }  static double calculateMean(Number[] values); static double calculateMean(Number[] values,
            boolean includeNullAndNaN); static double calculateMean(Collection<Number> values); static double calculateMean(Collection<Number> values,
            boolean includeNullAndNaN); static double calculateMedian(List<Number> values); static double calculateMedian(List<Number> values,
            boolean copyAndSort); static double calculateMedian(List<Number> values, int start, int end); static double calculateMedian(List<Number> values,
            int start, int end, boolean copyAndSort); static double getStdDev(Number[] data); static double[] getLinearFit(Number[] xData, Number[] yData); static double getSlope(Number[] xData, Number[] yData); static double getCorrelation(Number[] data1, Number[] data2); static double[][] getMovingAverage(Number[] xData,
                                              Number[] yData,
                                              int period);  }