TotalNumberOfRunsDistribution
javanpst.distributions.tests

Class TotalNumberOfRunsDistribution



  • public class TotalNumberOfRunsDistributionextends Object
    An implementation of the Total number of runs test distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
    • Method Detail

      • getInstance

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

        public static Incomplete3KeyTable getTableLeft()
        Gets the left tail table of the distribution
        Returns:
        Reference to the table
      • getTableRight

        public static Incomplete3KeyTable getTableRight()
        Gets the right tail table of the distribution
        Returns:
        Reference to the table
      • computeLeftTailProbability

        public double computeLeftTailProbability(int a,                                int b,                                int R)
        Computes left tail p-value of the Total number of runs distribution
        Parameters:
        a - number of elements of the first type
        b - number of elements of the second type
        R - total number of runs
        Returns:
        p-value computed
      • computeRightTailProbability

        public double computeRightTailProbability(int a,                                 int b,                                 int R)
        Computes right tail p-value of the Total number of runs distribution
        Parameters:
        a - number of elements of the first type
        b - number of elements of the second type
        R - total number of runs
        Returns:
        p-value computed
      • computeAsymptoticLeftTailProbability

        public double computeAsymptoticLeftTailProbability(int a,                                          int b,                                          int R)
        Computes asymptotic left tail p-value of the Total number of runs distribution
        Parameters:
        a - number of elements of the first type
        b - number of elements of the second type
        R - total number of runs
        Returns:
        p-value computed
      • computeAsymptoticRightTailProbability

        public double computeAsymptoticRightTailProbability(int a,                                           int b,                                           int R)
        Computes asymptotic left tail p-value of the Total number of runs distribution
        Parameters:
        a - number of elements of the first type
        b - number of elements of the second type
        R - total number of runs
        Returns:
        p-value computed
      • computeAsymptoticDoubleTailProbability

        public double computeAsymptoticDoubleTailProbability(int a,                                            int b,                                            int R)
        Computes asymptotic double tail p-value of the Total number of runs distribution
        Parameters:
        a - number of elements of the first type
        b - number of elements of the second type
        R - total number of runs
        Returns:
        p-value computed

SCaVis 2.1 © jWork.ORG