gov.sandia.cognition.statistics.method
Class ChiSquareConfidence.Statistic

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.statistics.method.AbstractConfidenceStatistic
          extended by gov.sandia.cognition.statistics.method.ChiSquareConfidence.Statistic
All Implemented Interfaces:
ConfidenceStatistic, CloneableSerializable, Serializable, Cloneable
Enclosing class:
ChiSquareConfidence

public static class ChiSquareConfidence.Statistic
extends AbstractConfidenceStatistic

Confidence Statistic for a chi-square test

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.sandia.cognition.statistics.method.AbstractConfidenceStatistic
nullHypothesisProbability
 
Constructor Summary
ChiSquareConfidence.Statistic(double chiSquare, double degreesOfFreedom)
          Creates a new instance of chiSquare
 
Method Summary
 double getChiSquare()
          Gets for chiSquare
 double getDegreesOfFreedom()
          Getter for degreesOfFreedom
 double getTestStatistic()
          Gets the statistic from which we compute the null-hypothesis probability.
 
Methods inherited from class gov.sandia.cognition.statistics.method.AbstractConfidenceStatistic
getNullHypothesisProbability, setNullHypothesisProbability, toString
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

ChiSquareConfidence.Statistic

public ChiSquareConfidence.Statistic(double chiSquare,
                                     double degreesOfFreedom)
Creates a new instance of chiSquare

Parameters:
chiSquare - Chi-square value
degreesOfFreedom - Number of degrees of freedom in the test
Method Detail

getChiSquare

public double getChiSquare()
Gets for chiSquare

Returns:
Chi-square value

getDegreesOfFreedom

public double getDegreesOfFreedom()
Getter for degreesOfFreedom

Returns:
Number of degrees of freedom

getTestStatistic

public double getTestStatistic()
Description copied from interface: ConfidenceStatistic
Gets the statistic from which we compute the null-hypothesis probability. In an ANOVA, this would be the "F" statistic. In a t-test, this would be the "t" value. And so forth.

Returns:
Confidence statistic used to compute the null-hypothesis probability.