javanpst.distributions.tests
Class McNemarDistribution
- java.lang.Object
-
- javanpst.distributions.tests.McNemarDistribution
-
public class McNemarDistribution extends java.lang.ObjectAn implementation of the McNemar's test 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 doublecomputeBinomialAdjustment(double S, double x)Compute adjustment to binomial distributiondoublecomputeChiAdjustment(double T)Compute adjustment to chi-square distributiondoublecomputeNormalAdjustment(double Z)Compute adjustment to normal distributionstatic McNemarDistributiongetInstance()Singleton pattern access to the distribution
-
-
-
Method Detail
-
getInstance
public static McNemarDistribution getInstance()
Singleton pattern access to the distribution- Returns:
- the instance of the distribution
-
computeBinomialAdjustment
public double computeBinomialAdjustment(double S, double x)Compute adjustment to binomial distribution- Parameters:
S- test statistic- Returns:
- p-value computed
-
computeNormalAdjustment
public double computeNormalAdjustment(double Z)
Compute adjustment to normal distribution- Parameters:
Z- test statistic- Returns:
- p-value computed
-
computeChiAdjustment
public double computeChiAdjustment(double T)
Compute adjustment to chi-square distribution- Parameters:
T- test statistic- Returns:
- p-value computed
-
-
DMelt 3.0 © DataMelt by jWork.ORG