public static class FriedmanConfidence.Statistic extends AbstractConfidenceStatistic
nullHypothesisProbability
Modifier | Constructor and Description |
---|---|
|
Statistic(int treatmentCount,
int subjectCount,
java.util.ArrayList<java.lang.Double> treatmentRankMeans)
Creates a new instance of Statistic
|
protected |
Statistic(int treatmentCount,
int subjectCount,
java.util.ArrayList<java.lang.Double> treatmentRankMeans,
double chiSquare)
Creates a new instance of Statistic
|
protected |
Statistic(int treatmentCount,
int subjectCount,
java.util.ArrayList<java.lang.Double> treatmentRankMeans,
double chiSquare,
double F)
Creates a new instance of Statistic
|
Modifier and Type | Method and Description |
---|---|
FriedmanConfidence.Statistic |
clone()
This makes public the clone method on the
Object class and
removes the exception that it throws. |
protected static double |
computeChiSquare(int treatmentCount,
int subjectCount,
java.util.ArrayList<java.lang.Double> treatmentRankMeans)
Computes the chi-square error for the rank means
|
double |
getChiSquare()
Getter for chiSquare
|
double |
getChiSquareNullHypothesisProbability()
Getter for chiSquareNullHypothesisProbability
|
double |
getDegreesOfFreedom()
Getter for degreesOfFreedom
|
double |
getF()
Getter for F.
|
int |
getSubjectCount()
Getter for subjectCount
|
double |
getTestStatistic()
Gets the statistic from which we compute the null-hypothesis probability.
|
int |
getTreatmentCount()
Getter for treatmentCount
|
java.util.ArrayList<java.lang.Double> |
getTreatmentRankMeans()
Getter for treatmentRankMeans
|
getNullHypothesisProbability, setNullHypothesisProbability, toString
public Statistic(int treatmentCount, int subjectCount, java.util.ArrayList<java.lang.Double> treatmentRankMeans)
treatmentCount
- Number of treatments in the experimentsubjectCount
- Number of subjects in the experimenttreatmentRankMeans
- Mean rank for each treatmentprotected Statistic(int treatmentCount, int subjectCount, java.util.ArrayList<java.lang.Double> treatmentRankMeans, double chiSquare)
treatmentCount
- Number of treatments in the experimentsubjectCount
- Number of subjects in the experimenttreatmentRankMeans
- Mean rank for each treatmentchiSquare
- Value of the chi-square error for the treatment ranksprotected Statistic(int treatmentCount, int subjectCount, java.util.ArrayList<java.lang.Double> treatmentRankMeans, double chiSquare, double F)
treatmentCount
- Number of treatments in the experimentsubjectCount
- Number of subjects in the experimenttreatmentRankMeans
- Mean rank for each treatmentchiSquare
- Value of the chi-square error for the treatment ranksF
- F-statistic for the corrected chi-square using Snedecor's F distributionprotected static double computeChiSquare(int treatmentCount, int subjectCount, java.util.ArrayList<java.lang.Double> treatmentRankMeans)
treatmentCount
- Number of treatments in the experimentsubjectCount
- Number of subjects in the experimenttreatmentRankMeans
- Mean rank for each treatmentpublic FriedmanConfidence.Statistic clone()
AbstractCloneableSerializable
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.clone
in interface CloneableSerializable
clone
in class AbstractCloneableSerializable
public int getTreatmentCount()
public int getSubjectCount()
public double getChiSquare()
public java.util.ArrayList<java.lang.Double> getTreatmentRankMeans()
public double getDegreesOfFreedom()
public double getChiSquareNullHypothesisProbability()
public double getF()
public double getTestStatistic()
ConfidenceStatistic