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

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.statistics.method.AbstractMultipleHypothesisComparison.Statistic
All Implemented Interfaces:
MultipleHypothesisComparison.Statistic, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
AbstractPairwiseMultipleHypothesisComparison.Statistic, NemenyiConfidence.Statistic, TukeyKramerConfidence.Statistic
Enclosing class:
AbstractMultipleHypothesisComparison<TreatmentData,StatisticType extends MultipleHypothesisComparison.Statistic>

public abstract static class AbstractMultipleHypothesisComparison.Statistic
extends AbstractCloneableSerializable
implements MultipleHypothesisComparison.Statistic

Partial implementation of MultipleHypothesisComparison.Statistic

See Also:
Serialized Form

Field Summary
protected  Matrix nullHypothesisProbabilities
          Null Hypothesis probability associated with the (i,j) treatment comparison
protected  Matrix testStatistics
          Test statistic associated with the (i,j) treatment comparison
protected  int treatmentCount
          Number of treatments being compared
protected  double uncompensatedAlpha
          Uncompensated alpha (p-value threshold) for the multiple comparison test
 
Constructor Summary
AbstractMultipleHypothesisComparison.Statistic()
          Default constructor
 
Method Summary
 AbstractMultipleHypothesisComparison.Statistic clone()
          This makes public the clone method on the Object class and removes the exception that it throws.
 double getNullHypothesisProbability(int i, int j)
          Gets the Null Hypothesis probability associated with the (i,j) treatment comparison
 double getTestStatistic(int i, int j)
          Gets the test statistic associated with the (i,j) treatment comparison
 int getTreatmentCount()
          Gets the number of treatments being compared
 double getUncompensatedAlpha()
          Gets the uncompensated alpha (p-value threshold) for the multiple comparison test
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.statistics.method.MultipleHypothesisComparison.Statistic
acceptNullHypothesis
 

Field Detail

treatmentCount

protected int treatmentCount
Number of treatments being compared


uncompensatedAlpha

protected double uncompensatedAlpha
Uncompensated alpha (p-value threshold) for the multiple comparison test


testStatistics

protected Matrix testStatistics
Test statistic associated with the (i,j) treatment comparison


nullHypothesisProbabilities

protected Matrix nullHypothesisProbabilities
Null Hypothesis probability associated with the (i,j) treatment comparison

Constructor Detail

AbstractMultipleHypothesisComparison.Statistic

public AbstractMultipleHypothesisComparison.Statistic()
Default constructor

Method Detail

clone

public AbstractMultipleHypothesisComparison.Statistic clone()
Description copied from class: AbstractCloneableSerializable
This makes public the clone method on the Object class and removes the exception that it throws. Its default behavior is to automatically create a clone of the exact type of object that the clone is called on and to copy all primitives but to keep all references, which means it is a shallow copy. Extensions of this class may want to override this method (but call super.clone() to implement a "smart copy". That is, to target the most common use case for creating a copy of the object. Because of the default behavior being a shallow copy, extending classes only need to handle fields that need to have a deeper copy (or those that need to be reset). Some of the methods in ObjectUtil may be helpful in implementing a custom clone method. Note: The contract of this method is that you must use super.clone() as the basis for your implementation.

Specified by:
clone in interface CloneableSerializable
Overrides:
clone in class AbstractCloneableSerializable
Returns:
A clone of this object.

getTreatmentCount

public int getTreatmentCount()
Description copied from interface: MultipleHypothesisComparison.Statistic
Gets the number of treatments being compared

Specified by:
getTreatmentCount in interface MultipleHypothesisComparison.Statistic
Returns:
Number of treatments being compared

getUncompensatedAlpha

public double getUncompensatedAlpha()
Description copied from interface: MultipleHypothesisComparison.Statistic
Gets the uncompensated alpha (p-value threshold) for the multiple comparison test

Specified by:
getUncompensatedAlpha in interface MultipleHypothesisComparison.Statistic
Returns:
Uncompensated alpha (p-value threshold) for the multiple comparison test

getTestStatistic

public double getTestStatistic(int i,
                               int j)
Description copied from interface: MultipleHypothesisComparison.Statistic
Gets the test statistic associated with the (i,j) treatment comparison

Specified by:
getTestStatistic in interface MultipleHypothesisComparison.Statistic
Parameters:
i - First treatment index
j - Second treatment index
Returns:
Test statistic associated with the (i,j) treatment comparison

getNullHypothesisProbability

public double getNullHypothesisProbability(int i,
                                           int j)
Description copied from interface: MultipleHypothesisComparison.Statistic
Gets the Null Hypothesis probability associated with the (i,j) treatment comparison

Specified by:
getNullHypothesisProbability in interface MultipleHypothesisComparison.Statistic
Parameters:
i - First treatment index
j - Second treatment index
Returns:
Null Hypothesis probability associated with the (i,j) treatment comparison

toString

public String toString()
Overrides:
toString in class Object