gov.sandia.cognition.statistics.method
Class WilcoxonSignedRankConfidence.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.WilcoxonSignedRankConfidence.Statistic
All Implemented Interfaces:
ConfidenceStatistic, CloneableSerializable, Serializable, Cloneable
Enclosing class:
WilcoxonSignedRankConfidence

public static class WilcoxonSignedRankConfidence.Statistic
extends AbstractConfidenceStatistic

ConfidenceStatistics associated with a Wilcoxon test

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.sandia.cognition.statistics.method.AbstractConfidenceStatistic
nullHypothesisProbability
 
Constructor Summary
WilcoxonSignedRankConfidence.Statistic(double T, int numNonZero)
          Creates a new instance of Statistic
 
Method Summary
protected static double computeNullHypothesisProbability(double z)
          Computes the p-value given the z-value
protected static double computeZ(double T, int numNonZero)
          Computes the z-value from the T-statistic and numNonZero value
 int getNumNonZero()
          Getter fir numNonZero
 double getT()
          Getter for T
 double getTestStatistic()
          Gets the statistic from which we compute the null-hypothesis probability.
 double getZ()
          Getter for z
protected  void setNumNonZero(int numNonZero)
          Setter for numNonZero
protected  void setT(double T)
          Getter for T
protected  void setZ(double z)
          Setter for z
 
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

WilcoxonSignedRankConfidence.Statistic

public WilcoxonSignedRankConfidence.Statistic(double T,
                                              int numNonZero)
Creates a new instance of Statistic

Parameters:
T - Wilcoxon T statistic, minimum sign-rank sum
numNonZero - Number of nonzero differences in the data
Method Detail

computeZ

protected static double computeZ(double T,
                                 int numNonZero)
Computes the z-value from the T-statistic and numNonZero value

Parameters:
T - Wilcoxon T statistic, minimum sign-rank sum
numNonZero - Number of nonzero differences in the data
Returns:
Z-statistic for the Gaussian CDF

computeNullHypothesisProbability

protected static double computeNullHypothesisProbability(double z)
Computes the p-value given the z-value

Parameters:
z - Z-statistic for the Gaussian CDF
Returns:
p-value for this Wilcoxon Test

getT

public double getT()
Getter for T

Returns:
Wilcoxon T statistic, minimum sign-rank sum

setT

protected void setT(double T)
Getter for T

Parameters:
T - Wilcoxon T statistic, minimum sign-rank sum

getNumNonZero

public int getNumNonZero()
Getter fir numNonZero

Returns:
Number of nonzero differences in the data

setNumNonZero

protected void setNumNonZero(int numNonZero)
Setter for numNonZero

Parameters:
numNonZero - Number of nonzero differences in the data

getZ

public double getZ()
Getter for z

Returns:
Z-statistic for the Gaussian CDF

setZ

protected void setZ(double z)
Setter for z

Parameters:
z - Z-statistic for the Gaussian CDF

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.