WilcoxonDistribution
javanpst.distributions.tests

Class WilcoxonDistribution



  • public class WilcoxonDistributionextends Object
    An implementation of the Wilcoxon Signed-ranks distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
    • Method Detail

      • getInstance

        public static WilcoxonDistribution 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,                             double R)
        Computes exact p-value of the Wilcoxon distribution
        Parameters:
        N - n parameter
        R - rank associated
        Returns:
        p-value computed
      • computeAsymptoticDoubleTailProbability

        public double computeAsymptoticDoubleTailProbability(int N,                                            double R,                                            double ties)
        Computes asymptotic double tailed p-value of the Wilcoxon distribution A ties correction of variance is incorporated. The array ties must be in the form {2,3,2,3} where each integer denotes the occurrence of a tie and the number of elements involved. if no ties, a void array shoud be used (i.e. ties=new int [0];)
        Parameters:
        N - n parameter
        R - rank associated
        ties - weight of ties
        Returns:
        p-value computed
      • computeAsymptoticRightTailProbability

        public double computeAsymptoticRightTailProbability(int N,                                           double R,                                           double ties)
        Computes asymptotic right tailed p-value of the Wilcoxon distribution A ties correction of variance is incorporated. The array ties must be in the form {2,3,2,3} where each integer denotes the occurrence of a tie and the number of elements involved. if no ties, a void array shoud be used (i.e. ties=new int [0];)
        Parameters:
        N - n parameter
        R - rank associated
        ties - weight of ties
        Returns:
        p-value computed
      • computeAsymptoticLeftTailProbability

        public double computeAsymptoticLeftTailProbability(int N,                                          double R,                                          double ties)
        Computes asymptotic double tailed p-value of the Wilcoxon distribution A ties correction of variance is incorporated. The array ties must be in the form {2,3,2,3} where each integer denotes the occurrence of a tie and the number of elements involved. if no ties, a void array shoud be used (i.e. ties=new int [0];)
        Parameters:
        N - n parameter
        R - rank associated
        ties - weight of ties
        Returns:
        p-value computed

SCaVis 2.0 © jWork.ORG