|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.stat.inference.TestUtils
public class TestUtils
A collection of static methods to create inference test instances or to perform inference tests.
Constructor Summary | |
---|---|
protected |
TestUtils()
Prevent instantiation. |
Method Summary | |
---|---|
static double |
chiSquare(double[] expected,
long[] observed)
|
static double |
chiSquare(long[][] counts)
|
static double |
chiSquareDataSetsComparison(long[] observed1,
long[] observed2)
|
static double |
chiSquareTest(double[] expected,
long[] observed)
|
static boolean |
chiSquareTest(double[] expected,
long[] observed,
double alpha)
|
static double |
chiSquareTest(long[][] counts)
|
static boolean |
chiSquareTest(long[][] counts,
double alpha)
|
static double |
chiSquareTestDataSetsComparison(long[] observed1,
long[] observed2)
|
static boolean |
chiSquareTestDataSetsComparison(long[] observed1,
long[] observed2,
double alpha)
|
static ChiSquareTest |
getChiSquareTest()
Return a (singleton) ChiSquareTest instance. |
static OneWayAnova |
getOneWayAnova()
Return a (singleton) OneWayAnova instance. |
static TTest |
getTTest()
Return a (singleton) TTest instance. |
static UnknownDistributionChiSquareTest |
getUnknownDistributionChiSquareTest()
Return a (singleton) UnknownDistributionChiSquareTest instance. |
static double |
homoscedasticT(double[] sample1,
double[] sample2)
|
static double |
homoscedasticT(StatisticalSummary sampleStats1,
StatisticalSummary sampleStats2)
|
static double |
homoscedasticTTest(double[] sample1,
double[] sample2)
|
static boolean |
homoscedasticTTest(double[] sample1,
double[] sample2,
double alpha)
|
static double |
homoscedasticTTest(StatisticalSummary sampleStats1,
StatisticalSummary sampleStats2)
|
static double |
oneWayAnovaFValue(java.util.Collection<double[]> categoryData)
|
static double |
oneWayAnovaPValue(java.util.Collection<double[]> categoryData)
|
static boolean |
oneWayAnovaTest(java.util.Collection<double[]> categoryData,
double alpha)
|
static double |
pairedT(double[] sample1,
double[] sample2)
|
static double |
pairedTTest(double[] sample1,
double[] sample2)
|
static boolean |
pairedTTest(double[] sample1,
double[] sample2,
double alpha)
|
static void |
setChiSquareTest(ChiSquareTest chiSquareTest)
Set the (singleton) ChiSquareTest instance. |
static void |
setChiSquareTest(TTest chiSquareTest)
Set the (singleton) TTest instance. |
static void |
setOneWayAnova(OneWayAnova oneWayAnova)
Set the (singleton) OneWayAnova instance |
static void |
setUnknownDistributionChiSquareTest(UnknownDistributionChiSquareTest unknownDistributionChiSquareTest)
Set the (singleton) UnknownDistributionChiSquareTest instance. |
static double |
t(double[] sample1,
double[] sample2)
|
static double |
t(double mu,
double[] observed)
|
static double |
t(double mu,
StatisticalSummary sampleStats)
|
static double |
t(StatisticalSummary sampleStats1,
StatisticalSummary sampleStats2)
|
static double |
tTest(double[] sample1,
double[] sample2)
|
static boolean |
tTest(double[] sample1,
double[] sample2,
double alpha)
|
static double |
tTest(double mu,
double[] sample)
|
static boolean |
tTest(double mu,
double[] sample,
double alpha)
|
static double |
tTest(double mu,
StatisticalSummary sampleStats)
|
static boolean |
tTest(double mu,
StatisticalSummary sampleStats,
double alpha)
|
static double |
tTest(StatisticalSummary sampleStats1,
StatisticalSummary sampleStats2)
|
static boolean |
tTest(StatisticalSummary sampleStats1,
StatisticalSummary sampleStats2,
double alpha)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TestUtils()
Method Detail |
---|
public static void setChiSquareTest(TTest chiSquareTest)
chiSquareTest
- the new instance to usepublic static TTest getTTest()
public static void setChiSquareTest(ChiSquareTest chiSquareTest)
chiSquareTest
- the new instance to usepublic static ChiSquareTest getChiSquareTest()
public static void setUnknownDistributionChiSquareTest(UnknownDistributionChiSquareTest unknownDistributionChiSquareTest)
unknownDistributionChiSquareTest
- the new instance to usepublic static UnknownDistributionChiSquareTest getUnknownDistributionChiSquareTest()
public static void setOneWayAnova(OneWayAnova oneWayAnova)
oneWayAnova
- the new instance to usepublic static OneWayAnova getOneWayAnova()
public static double homoscedasticT(double[] sample1, double[] sample2) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
TTest.homoscedasticT(double[], double[])
public static double homoscedasticT(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
TTest.homoscedasticT(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary)
public static boolean homoscedasticTTest(double[] sample1, double[] sample2, double alpha) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.homoscedasticTTest(double[], double[], double)
public static double homoscedasticTTest(double[] sample1, double[] sample2) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.homoscedasticTTest(double[], double[])
public static double homoscedasticTTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.homoscedasticTTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary)
public static double pairedT(double[] sample1, double[] sample2) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.pairedT(double[], double[])
public static boolean pairedTTest(double[] sample1, double[] sample2, double alpha) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.pairedTTest(double[], double[], double)
public static double pairedTTest(double[] sample1, double[] sample2) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.pairedTTest(double[], double[])
public static double t(double mu, double[] observed) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
TTest.t(double, double[])
public static double t(double mu, StatisticalSummary sampleStats) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
TTest.t(double, org.apache.commons.math.stat.descriptive.StatisticalSummary)
public static double t(double[] sample1, double[] sample2) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
TTest.t(double[], double[])
public static double t(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
TTest.t(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary)
public static boolean tTest(double mu, double[] sample, double alpha) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.tTest(double, double[], double)
public static double tTest(double mu, double[] sample) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.tTest(double, double[])
public static boolean tTest(double mu, StatisticalSummary sampleStats, double alpha) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.tTest(double, org.apache.commons.math.stat.descriptive.StatisticalSummary, double)
public static double tTest(double mu, StatisticalSummary sampleStats) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.tTest(double, org.apache.commons.math.stat.descriptive.StatisticalSummary)
public static boolean tTest(double[] sample1, double[] sample2, double alpha) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.tTest(double[], double[], double)
public static double tTest(double[] sample1, double[] sample2) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.tTest(double[], double[])
public static boolean tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2, double alpha) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.tTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary, double)
public static double tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
TTest.tTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary)
public static double chiSquare(double[] expected, long[] observed) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
ChiSquareTest.chiSquare(double[], long[])
public static double chiSquare(long[][] counts) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
ChiSquareTest.chiSquare(long[][])
public static boolean chiSquareTest(double[] expected, long[] observed, double alpha) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
ChiSquareTest.chiSquareTest(double[], long[], double)
public static double chiSquareTest(double[] expected, long[] observed) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
ChiSquareTest.chiSquareTest(double[], long[])
public static boolean chiSquareTest(long[][] counts, double alpha) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
ChiSquareTest.chiSquareTest(long[][], double)
public static double chiSquareTest(long[][] counts) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
ChiSquareTest.chiSquareTest(long[][])
public static double chiSquareDataSetsComparison(long[] observed1, long[] observed2) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
UnknownDistributionChiSquareTest.chiSquareDataSetsComparison(long[], long[])
public static double chiSquareTestDataSetsComparison(long[] observed1, long[] observed2) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
UnknownDistributionChiSquareTest.chiSquareTestDataSetsComparison(long[], long[])
public static boolean chiSquareTestDataSetsComparison(long[] observed1, long[] observed2, double alpha) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
UnknownDistributionChiSquareTest.chiSquareTestDataSetsComparison(long[], long[], double)
public static double oneWayAnovaFValue(java.util.Collection<double[]> categoryData) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
OneWayAnova.anovaFValue(Collection)
public static double oneWayAnovaPValue(java.util.Collection<double[]> categoryData) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
OneWayAnova.anovaPValue(Collection)
public static boolean oneWayAnovaTest(java.util.Collection<double[]> categoryData, double alpha) throws java.lang.IllegalArgumentException, MathException
java.lang.IllegalArgumentException
MathException
OneWayAnova.anovaTest(Collection,double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |