PageDistribution
javanpst.distributions.tests

Class PageDistribution



  • public class PageDistributionextends Object
    An implementation of the Page distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
    • Method Detail

      • getInstance

        public static PageDistribution getInstance()
        Singleton pattern access to the distribution
        Returns:
        the instance of the distribution
      • getTable

        public static Critical2KeyTable getTable()
        Gets the table of critical values of the distribution
        Returns:
        Reference to the table
      • computeExactProbability

        public double computeExactProbability(int n,                             int k,                             double L)
        Computes Exact p-value of the Page distribution.
        Parameters:
        n - number of columns
        k - number of rows
        L - Page statistic
        Returns:
        p-value computed
      • computeAsymptoticProbability

        public double computeAsymptoticProbability(int n,                                  int k,                                  double L)
        Computes asymptotic p-value of the Page distribution.
        Parameters:
        n - number of columns
        k - number of rows
        L - Page statistic
        Returns:
        p-value computed

SCaVis 1.8 © jWork.org