PSquarePercentile extends AbstractStorelessUnivariateStatistic implements StorelessUnivariateStatistic, Serializable { @Override public String toString() { if (markers == null) { return String.format("obs=%s pValue=%s", DECIMAL_FORMAT.format(lastObservation), DECIMAL_FORMAT.format(pValue)); } else { return String.format("obs=%s markers=%s", DECIMAL_FORMAT.format(lastObservation), markers.toString()); } } PSquarePercentile(final double p);   PSquarePercentile(); @Override int hashCode(); @Override boolean equals(Object o); @Override void increment(final double observation); @Override String toString(); long getN(); @Override StorelessUnivariateStatistic copy(); double quantile(); @Override void clear(); @Override double getResult(); static PSquareMarkers newMarkers(final List<Double> initialFive,
            final double p);  }
@Test public void test0PercentileValuesWithFewerThan5Values() { double[] test = { 1d, 2d, 3d, 4d }; PSquarePercentile p = new PSquarePercentile(0d); Assert.assertEquals(1d, p.evaluate(test), 0); Assert.assertNotNull(p.toString()); }