Class PSquarePercentile

All Implemented Interfaces:
Serializable, StorelessUnivariateStatistic, UnivariateStatistic, MathArrays.Function

public class PSquarePercentile extends AbstractStorelessUnivariateStatistic implements StorelessUnivariateStatistic, Serializable
A StorelessUnivariateStatistic estimating percentiles using the invalid input: '<'ahref=http://www.cs.wustl.edu/~jain/papers/ftp/psqr.pdf>P2 Algorithm as explained by Raj Jain and Imrich Chlamtac in P2 Algorithm for Dynamic Calculation of Quantiles and Histogram Without Storing Observations.

Note: This implementation is not synchronized and produces an approximate result. For small samples, where data can be stored and processed in memory, Percentile should be used.

See Also:
  • Constructor Details

    • PSquarePercentile

      public PSquarePercentile(double p)
      Constructs a PSquarePercentile with the specific percentile value.
      Parameters:
      p - the percentile
      Throws:
      OutOfRangeException - if p is not greater than 0 and less than or equal to 100
  • Method Details