Median extends FrugalQuantile { public Median() { super(0.5, 1.0, null); } Median(); @Override synchronized void insert(double x); @Override String toString();  }
@Test public void testMedian() { Random rng = new Random("Repeatable tests".hashCode()); int n = 1; for (int i = 0; i < n; i++) { testMedian(rng); } System.out.println( "Error avg = " + (errorSum / n) + " in range [" + minError + ", " + maxError + "]"); }