public class TestUtils extends Object
The set methods are not compatible with using the class in multiple threads, and have therefore been deprecated (along with the getters). The setters and getters will be removed in version 3.0.
Modifier and Type | Field and Description |
---|---|
private static ChiSquareTest |
chiSquareTest
Singleton ChiSquareTest instance using default implementation.
|
private static OneWayAnova |
oneWayAnova
Singleton OneWayAnova instance using default implementation.
|
private static TTest |
tTest
Singleton TTest instance using default implementation.
|
private static UnknownDistributionChiSquareTest |
unknownDistributionChiSquareTest
Singleton ChiSquareTest instance using default implementation.
|
Modifier | Constructor and Description |
---|---|
protected |
TestUtils()
Prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
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()
Deprecated.
2.2 will be removed in 3.0
|
static OneWayAnova |
getOneWayAnova()
Deprecated.
2.2 will be removed in 3.0
|
static TTest |
getTTest()
Deprecated.
2.2 will be removed in 3.0
|
static UnknownDistributionChiSquareTest |
getUnknownDistributionChiSquareTest()
Deprecated.
2.2 will be removed in 3.0
|
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(Collection<double[]> categoryData) |
static double |
oneWayAnovaPValue(Collection<double[]> categoryData) |
static boolean |
oneWayAnovaTest(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)
Deprecated.
2.2 will be removed in 3.0 - not compatible with use from multiple threads
|
static void |
setChiSquareTest(TTest chiSquareTest)
Deprecated.
2.2 will be removed in 3.0 - not compatible with use from multiple threads
|
static void |
setOneWayAnova(OneWayAnova oneWayAnova)
Deprecated.
2.2 will be removed in 3.0 - not compatible with use from multiple threads
|
static void |
setUnknownDistributionChiSquareTest(UnknownDistributionChiSquareTest unknownDistributionChiSquareTest)
Deprecated.
2.2 will be removed in 3.0 - not compatible with use from multiple threads
|
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) |
private static TTest tTest
private static ChiSquareTest chiSquareTest
private static UnknownDistributionChiSquareTest unknownDistributionChiSquareTest
private static OneWayAnova oneWayAnova
@Deprecated public static void setChiSquareTest(TTest chiSquareTest)
chiSquareTest
- the new instance to use@Deprecated public static TTest getTTest()
@Deprecated public static void setChiSquareTest(ChiSquareTest chiSquareTest)
chiSquareTest
- the new instance to use@Deprecated public static ChiSquareTest getChiSquareTest()
@Deprecated public static void setUnknownDistributionChiSquareTest(UnknownDistributionChiSquareTest unknownDistributionChiSquareTest)
unknownDistributionChiSquareTest
- the new instance to use@Deprecated public static UnknownDistributionChiSquareTest getUnknownDistributionChiSquareTest()
@Deprecated public static void setOneWayAnova(OneWayAnova oneWayAnova)
oneWayAnova
- the new instance to use@Deprecated public static OneWayAnova getOneWayAnova()
public static double homoscedasticT(double[] sample1, double[] sample2) throws IllegalArgumentException
IllegalArgumentException
TTest.homoscedasticT(double[], double[])
public static double homoscedasticT(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws IllegalArgumentException
public static boolean homoscedasticTTest(double[] sample1, double[] sample2, double alpha) throws IllegalArgumentException, MathException
public static double homoscedasticTTest(double[] sample1, double[] sample2) throws IllegalArgumentException, MathException
public static double homoscedasticTTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws IllegalArgumentException, MathException
public static double pairedT(double[] sample1, double[] sample2) throws IllegalArgumentException, MathException
IllegalArgumentException
MathException
TTest.pairedT(double[], double[])
public static boolean pairedTTest(double[] sample1, double[] sample2, double alpha) throws IllegalArgumentException, MathException
public static double pairedTTest(double[] sample1, double[] sample2) throws IllegalArgumentException, MathException
public static double t(double mu, double[] observed) throws IllegalArgumentException
IllegalArgumentException
TTest.t(double, double[])
public static double t(double mu, StatisticalSummary sampleStats) throws IllegalArgumentException
public static double t(double[] sample1, double[] sample2) throws IllegalArgumentException
IllegalArgumentException
TTest.t(double[], double[])
public static double t(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws IllegalArgumentException
public static boolean tTest(double mu, double[] sample, double alpha) throws IllegalArgumentException, MathException
public static double tTest(double mu, double[] sample) throws IllegalArgumentException, MathException
IllegalArgumentException
MathException
TTest.tTest(double, double[])
public static boolean tTest(double mu, StatisticalSummary sampleStats, double alpha) throws IllegalArgumentException, MathException
public static double tTest(double mu, StatisticalSummary sampleStats) throws IllegalArgumentException, MathException
public static boolean tTest(double[] sample1, double[] sample2, double alpha) throws IllegalArgumentException, MathException
public static double tTest(double[] sample1, double[] sample2) throws IllegalArgumentException, MathException
IllegalArgumentException
MathException
TTest.tTest(double[], double[])
public static boolean tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2, double alpha) throws IllegalArgumentException, MathException
public static double tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws IllegalArgumentException, MathException
public static double chiSquare(double[] expected, long[] observed) throws IllegalArgumentException
IllegalArgumentException
ChiSquareTest.chiSquare(double[], long[])
public static double chiSquare(long[][] counts) throws IllegalArgumentException
IllegalArgumentException
ChiSquareTest.chiSquare(long[][])
public static boolean chiSquareTest(double[] expected, long[] observed, double alpha) throws IllegalArgumentException, MathException
public static double chiSquareTest(double[] expected, long[] observed) throws IllegalArgumentException, MathException
public static boolean chiSquareTest(long[][] counts, double alpha) throws IllegalArgumentException, MathException
public static double chiSquareTest(long[][] counts) throws IllegalArgumentException, MathException
public static double chiSquareDataSetsComparison(long[] observed1, long[] observed2) throws IllegalArgumentException
IllegalArgumentException
UnknownDistributionChiSquareTest.chiSquareDataSetsComparison(long[], long[])
public static double chiSquareTestDataSetsComparison(long[] observed1, long[] observed2) throws IllegalArgumentException, MathException
public static boolean chiSquareTestDataSetsComparison(long[] observed1, long[] observed2, double alpha) throws IllegalArgumentException, MathException
public static double oneWayAnovaFValue(Collection<double[]> categoryData) throws IllegalArgumentException, MathException
IllegalArgumentException
MathException
OneWayAnova.anovaFValue(Collection)
public static double oneWayAnovaPValue(Collection<double[]> categoryData) throws IllegalArgumentException, MathException
IllegalArgumentException
MathException
OneWayAnova.anovaPValue(Collection)
public static boolean oneWayAnovaTest(Collection<double[]> categoryData, double alpha) throws IllegalArgumentException, MathException
IllegalArgumentException
MathException
OneWayAnova.anovaTest(Collection,double)
Copyright (c) 2003-2014 Apache Software Foundation