RVNDistribution
javanpst.distributions.tests

Class RVNDistribution



  • public class RVNDistributionextends Object
    An implementation of the Ranks Von Newmann distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
    • Method Detail

      • getInstance

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

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

        public double computeLeftProbability(int n,                            double RVN)
        Computes left tail p-value of the Ranks Von Newmann distribution.
        Parameters:
        n - size of the sequence
        RVN - Ranks Von Newmann statistic
        Returns:
        p-value computed
      • computeRightProbability

        public double computeRightProbability(int n,                             double RVN)
        Computes right tail p-value of the Ranks Von Newmann distribution.
        Parameters:
        n - size of the sequence
        RVN - Ranks Von Newmann statistic
        Returns:
        p-value computed

SCaVis 2.0 © jWork.ORG