Package org.tribuo.util.infotheory
Class InformationTheory.GTestStatistics
java.lang.Object
org.tribuo.util.infotheory.InformationTheory.GTestStatistics
- Enclosing class:
- InformationTheory
An immutable named tuple containing the statistics from a G test.
Will be a record one day.
-
Field Summary
Modifier and TypeFieldDescriptionfinal double
The G test statistic.final int
The number of states.final double
The probability of that statistic. -
Constructor Summary
ConstructorDescriptionGTestStatistics
(double gStatistic, int numStates, double probability) Constructs a GTestStatistics tuple with the supplied values. -
Method Summary
-
Field Details
-
gStatistic
public final double gStatisticThe G test statistic. -
numStates
public final int numStatesThe number of states. -
probability
public final double probabilityThe probability of that statistic.
-
-
Constructor Details
-
GTestStatistics
public GTestStatistics(double gStatistic, int numStates, double probability) Constructs a GTestStatistics tuple with the supplied values.- Parameters:
gStatistic
- The g test statistic.numStates
- The number of states.probability
- The probability of that statistic.
-
-
Method Details