Class UnconditionedExactTest.Result
- java.lang.Object
-
- org.apache.commons.statistics.inference.UnconditionedExactTest.Result
-
- All Implemented Interfaces:
SignificanceResult
- Enclosing class:
- UnconditionedExactTest
public static final class UnconditionedExactTest.Result extends Object
Result for the unconditioned exact test.This class is immutable.
- Since:
- 1.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getNuisanceParameter()
Gets the nuisance parameter that maximised the probability sum of the as or more extreme tables.double
getPValue()
Returns the test statistic p-value.double
getStatistic()
Returns the test statistic.-
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
-
-
-
-
Method Detail
-
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
- 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.
-
getPValue
public double getPValue()
Description copied from interface:SignificanceResult
Returns the test statistic p-value.The number returned is the smallest significance level at which one can reject the null hypothesis.
- Specified by:
getPValue
in interfaceSignificanceResult
- Returns:
- the p-value
-
-