javanpst.distributions.tests
Class WilcoxonDistribution
- java.lang.Object
-
- javanpst.distributions.tests.WilcoxonDistribution
-
public class WilcoxonDistribution extends java.lang.ObjectAn implementation of the Wilcoxon Signed-ranks distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecomputeAsymptoticDoubleTailProbability(int N, double R, double ties)Computes asymptotic double tailed p-value of the Wilcoxon distribution A ties correction of variance is incorporated.doublecomputeAsymptoticLeftTailProbability(int N, double R, double ties)Computes asymptotic double tailed p-value of the Wilcoxon distribution A ties correction of variance is incorporated.doublecomputeAsymptoticRightTailProbability(int N, double R, double ties)Computes asymptotic right tailed p-value of the Wilcoxon distribution A ties correction of variance is incorporated.doublecomputeExactProbability(int N, double R)Computes exact p-value of the Wilcoxon distributionstatic WilcoxonDistributiongetInstance()Singleton pattern access to the distributionstatic Incomplete2KeyTablegetTable()Gets the table of the distribution
-
-
-
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 parameterR- 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 parameterR- rank associatedties- 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 parameterR- rank associatedties- 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 parameterR- rank associatedties- weight of ties- Returns:
- p-value computed
-
-
DMelt 3.0 © DataMelt by jWork.ORG