Class InformationTheory.GTestStatistics

java.lang.Object
org.tribuo.util.infotheory.InformationTheory.GTestStatistics
Enclosing class:
InformationTheory

public static final class InformationTheory.GTestStatistics extends Object
An immutable named tuple containing the statistics from a G test.

Will be a record one day.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    The G test statistic.
    final int
    The number of states.
    final double
    The probability of that statistic.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GTestStatistics(double gStatistic, int numStates, double probability)
    Constructs a GTestStatistics tuple with the supplied values.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • gStatistic

      public final double gStatistic
      The G test statistic.
    • numStates

      public final int numStates
      The number of states.
    • probability

      public final double probability
      The 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