Documentation of 'javanpst.distributions.tests.RunsUpDownDistribution' Java class
RunsUpDownDistribution
javanpst.distributions.tests

Class RunsUpDownDistribution



  • public class RunsUpDownDistribution
    extends java.lang.Object
    An implementation of the Runs up down distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
    • Method Detail

      • getInstance

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

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

        public double computeExactProbability(int n,
                                              int R,
                                              boolean leftTail)
        Computes exact p-value of the Runs up down distribution
        Parameters:
        n - number of elements
        R - Runs up down statistic
        leftTail - true if computing p-value of the left tail, false if right tail
        Returns:
        p-value computed
      • computeAsymptoticLeftTailProbability

        public double computeAsymptoticLeftTailProbability(int n,
                                                           int R)
        Computes asymptotic left tail p-value of the Runs Up Down distribution
        Parameters:
        n - number of elements in the sequence
        R - total number of runs
        Returns:
        p-value computed
      • computeAsymptoticRightTailProbability

        public double computeAsymptoticRightTailProbability(int n,
                                                            int R)
        Computes asymptotic left tail p-value of the Runs Up Down distribution
        Parameters:
        n - number of elements in the sequence
        R - total number of runs
        Returns:
        p-value computed
      • computeAsymptoticDoubleTailProbability

        public double computeAsymptoticDoubleTailProbability(int n,
                                                             int R)
        Computes asymptotic double tail p-value of the Runs Up Down distribution
        Parameters:
        n - number of elements in the sequence
        R - total number of runs
        Returns:
        p-value computed

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.