javanpst.distributions.tests
Class WilcoxonRankSumDistribution
- java.lang.Object
-
- javanpst.distributions.tests.WilcoxonRankSumDistribution
-
public class WilcoxonRankSumDistribution extends java.lang.ObjectAn implementation of the Wilcoxon Ranks-Sum 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 doublecomputeLeftProbability(int n, int m, int R)Computes left tail probability of the Wilcoxon Ranks-Sum distribution.doublecomputeRightProbability(int n, int m, int R)Computes right tail probability of the Wilcoxon Ranks-Sum distribution.intfindCriticalValue(int n, int m, double alpha)Finds the maximum rank whose p-value associated is equal o less than alpha/2 This method is used for computing confidence interval boundariesstatic WilcoxonRankSumDistributiongetInstance()Singleton pattern access to the distributionstatic Incomplete3KeyTablegetTable()Gets the table of the distributiondoubleinverseFindCriticalValue(int n, int m, int u)Finds the p-value associated to a rank, provided that it exists This method is used for computing exact confidence for confidence intervals
-
-
-
Method Detail
-
getInstance
public static WilcoxonRankSumDistribution getInstance()
Singleton pattern access to the distribution- Returns:
- the instance of the distribution
-
getTable
public static Incomplete3KeyTable getTable()
Gets the table of the distribution- Returns:
- Reference to the table
-
computeLeftProbability
public double computeLeftProbability(int n, int m, int R)Computes left tail probability of the Wilcoxon Ranks-Sum distribution.- Parameters:
n- n parameterm- m parameterR- rank associated- Returns:
- p-value associated
-
computeRightProbability
public double computeRightProbability(int n, int m, int R)Computes right tail probability of the Wilcoxon Ranks-Sum distribution.- Parameters:
n- n parameterm- m parameterR- rank associated- Returns:
- p-value associated
-
findCriticalValue
public int findCriticalValue(int n, int m, double alpha)Finds the maximum rank whose p-value associated is equal o less than alpha/2 This method is used for computing confidence interval boundaries- Parameters:
n- n parameterm- m parameteralpha- alpha confidence required- Returns:
- rank found
-
inverseFindCriticalValue
public double inverseFindCriticalValue(int n, int m, int u)Finds the p-value associated to a rank, provided that it exists This method is used for computing exact confidence for confidence intervals- Parameters:
n- n parameterm- m parameteru- rank selected- Returns:
- confidence associated
-
-
DMelt 3.0 © DataMelt by jWork.ORG