Percentile extends AbstractUnivariateStatistic implements Serializable { public PivotingStrategyInterface getPivotingStrategy() { return kthSelector.getPivotingStrategy(); } Percentile();  Percentile(final double quantile);  Percentile(final Percentile original); protected  Percentile(final double quantile,
                         final EstimationType estimationType,
                         final NaNStrategy nanStrategy,
                         final KthSelector kthSelector); @Override void setData(final double[] values); @Override void setData(final double[] values, final int begin, final int length); double evaluate(final double p); double evaluate(final double[] values, final double p); @Override double evaluate(final double[] values, final int start, final int length); double evaluate(final double[] values, final int begin,
                           final int length, final double p); double getQuantile(); void setQuantile(final double p); @Override Percentile copy(); @Deprecated static void copy(final Percentile source, final Percentile dest); EstimationType getEstimationType(); Percentile withEstimationType(final EstimationType newEstimationType); NaNStrategy getNaNStrategy(); Percentile withNaNStrategy(final NaNStrategy newNaNStrategy); KthSelector getKthSelector(); PivotingStrategyInterface getPivotingStrategy(); Percentile withKthSelector(final KthSelector newKthSelector);  }
@Test public void testAllTechniquesPercentileUsingMedianOf3Pivoting() { kthSelector = new KthSelector(new MedianOf3PivotingStrategy()); Assert.assertEquals(MedianOf3PivotingStrategy.class, getUnivariateStatistic().getPivotingStrategy().getClass()); checkAllTechniquesPercentile(); }
@Test public void testAllTechniquesPercentileUsingCentralPivoting() { kthSelector = new KthSelector(new CentralPivotingStrategy()); Assert.assertEquals(CentralPivotingStrategy.class, getUnivariateStatistic().getPivotingStrategy().getClass()); checkAllTechniquesPercentile(); }
@Test public void testAllTechniquesPercentileUsingRandomPivoting() { kthSelector = new KthSelector(new RandomPivotingStrategy(new Well1024a(0x268a7fb4194240f6l))); Assert.assertEquals(RandomPivotingStrategy.class, getUnivariateStatistic().getPivotingStrategy().getClass()); checkAllTechniquesPercentile(); }