public static class MannWhitneyUConfidence.Statistic extends AbstractConfidenceStatistic
nullHypothesisProbability
Constructor and Description |
---|
Statistic(double sum1,
int N1,
double sum2,
int N2)
Creates a new instance of Statistic
|
Statistic(MannWhitneyUConfidence.Statistic other)
Copy Constructor
|
Modifier and Type | Method and Description |
---|---|
static double |
computeNullHypothesisProbability(double z)
Computes the p-value for the test, given the z-value
|
static double |
computeU(double sum1,
int N1,
double sum2,
int N2)
Computes the U-statistic, the minimum rank sum above "chance"
|
static double |
computeZ(double U,
int N1,
int N2)
Computes the z-value, used in the UnivariateGaussian CDF
|
int |
getN1()
Getter for N1
|
int |
getN2()
Getter for N2
|
double |
getTestStatistic()
Gets the statistic from which we compute the null-hypothesis probability.
|
double |
getU()
Getter for U
|
double |
getZ()
Getter for z
|
protected void |
setN1(int N1)
Setter for N1
|
protected void |
setN2(int N2)
Setter for N2
|
protected void |
setU(double U)
Setter for U
|
protected void |
setZ(double z)
Setter for z
|
getNullHypothesisProbability, setNullHypothesisProbability, toString
clone
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone
public Statistic(double sum1, int N1, double sum2, int N2)
sum1
- Rank sum for data1N1
- Number of samples in data1sum2
- Rank sum for data2N2
- Number of samples in data2public Statistic(MannWhitneyUConfidence.Statistic other)
other
- Statistic to copypublic static double computeU(double sum1, int N1, double sum2, int N2)
sum1
- Rank-sum value for data1N1
- Number of samples in data1sum2
- Rank-sum value for data2N2
- Number of samples in data2public static double computeZ(double U, int N1, int N2)
U
- U statistic, minimum rank sum above "chance"N1
- Number of samples in data1N2
- Number of samples in data2public static double computeNullHypothesisProbability(double z)
z
- z-value for a UnivariateGaussian CDF, number of standard deviations
away from chancepublic double getU()
protected void setU(double U)
U
- U statistic, minimum rank sum above "chance"public double getZ()
protected void setZ(double z)
z
- z-value for a UnivariateGaussian CDF, number of standard deviations
away from chancepublic int getN1()
protected void setN1(int N1)
N1
- Number of samples in data1public int getN2()
protected void setN2(int N2)
N2
- Number of samples in data1public double getTestStatistic()
ConfidenceStatistic