Class UnconditionedExactTest.Result
java.lang.Object
org.apache.commons.statistics.inference.BaseSignificanceResult
org.apache.commons.statistics.inference.UnconditionedExactTest.Result
- All Implemented Interfaces:
SignificanceResult
- Enclosing class:
UnconditionedExactTest
Result for the unconditioned exact test.
This class is immutable.
- Since:
- 1.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the nuisance parameter that maximised the probability sum of the as or more extreme tables.double
Returns the test statistic.Methods inherited from class org.apache.commons.statistics.inference.BaseSignificanceResult
getPValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.commons.statistics.inference.SignificanceResult
reject
-
Field Details
-
pi
private final double piNuisance parameter.
-
-
Constructor Details
-
Result
Result(double statistic) Create an instance where all tables are more extreme, i.e. the p-value is 1.0.- Parameters:
statistic
- Test statistic.
-
Result
Result(double statistic, double pi, double p) - Parameters:
statistic
- Test statistic.pi
- Nuisance parameter.p
- Result p-value.
-
-
Method Details
-
getStatistic
public double getStatistic()Returns the test statistic.The value of the statistic is dependent on the method used to determine the more extreme tables.
- Specified by:
getStatistic
in interfaceSignificanceResult
- Overrides:
getStatistic
in classBaseSignificanceResult
- Returns:
- the statistic
-
getNuisanceParameter
public double getNuisanceParameter()Gets the nuisance parameter that maximised the probability sum of the as or more extreme tables.- Returns:
- the nuisance parameter.
-