public class TestUtils extends Object
Modifier and Type | Method and Description |
---|---|
static double |
approximateP(double d,
int n,
int m) |
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 double |
exactP(double d,
int m,
int n,
boolean strict) |
static double |
g(double[] expected,
long[] observed) |
static double |
gDataSetsComparison(long[] observed1,
long[] observed2) |
static double |
gTest(double[] expected,
long[] observed) |
static boolean |
gTest(double[] expected,
long[] observed,
double alpha) |
static double |
gTestDataSetsComparison(long[] observed1,
long[] observed2) |
static boolean |
gTestDataSetsComparison(long[] observed1,
long[] observed2,
double alpha) |
static double |
gTestIntrinsic(double[] expected,
long[] observed) |
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 |
kolmogorovSmirnovStatistic(double[] x,
double[] y) |
static double |
kolmogorovSmirnovStatistic(RealDistribution dist,
double[] data) |
static double |
kolmogorovSmirnovTest(double[] x,
double[] y) |
static double |
kolmogorovSmirnovTest(double[] x,
double[] y,
boolean strict) |
static double |
kolmogorovSmirnovTest(RealDistribution dist,
double[] data) |
static double |
kolmogorovSmirnovTest(RealDistribution dist,
double[] data,
boolean strict) |
static boolean |
kolmogorovSmirnovTest(RealDistribution dist,
double[] data,
double alpha) |
static double |
monteCarloP(double d,
int n,
int m,
boolean strict,
int iterations) |
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 double |
rootLogLikelihoodRatio(long k11,
long k12,
long k21,
long k22) |
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) |
public static double homoscedasticT(double[] sample1, double[] sample2) throws NullArgumentException, NumberIsTooSmallException
public static double homoscedasticT(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws NullArgumentException, NumberIsTooSmallException
public static boolean homoscedasticTTest(double[] sample1, double[] sample2, double alpha) throws NullArgumentException, NumberIsTooSmallException, OutOfRangeException, MaxCountExceededException
public static double homoscedasticTTest(double[] sample1, double[] sample2) throws NullArgumentException, NumberIsTooSmallException, MaxCountExceededException
public static double homoscedasticTTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws NullArgumentException, NumberIsTooSmallException, MaxCountExceededException
public static double pairedT(double[] sample1, double[] sample2) throws NullArgumentException, NoDataException, DimensionMismatchException, NumberIsTooSmallException
public static boolean pairedTTest(double[] sample1, double[] sample2, double alpha) throws NullArgumentException, NoDataException, DimensionMismatchException, NumberIsTooSmallException, OutOfRangeException, MaxCountExceededException
public static double pairedTTest(double[] sample1, double[] sample2) throws NullArgumentException, NoDataException, DimensionMismatchException, NumberIsTooSmallException, MaxCountExceededException
public static double t(double mu, double[] observed) throws NullArgumentException, NumberIsTooSmallException
NullArgumentException
NumberIsTooSmallException
TTest.t(double, double[])
public static double t(double mu, StatisticalSummary sampleStats) throws NullArgumentException, NumberIsTooSmallException
public static double t(double[] sample1, double[] sample2) throws NullArgumentException, NumberIsTooSmallException
public static double t(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws NullArgumentException, NumberIsTooSmallException
public static boolean tTest(double mu, double[] sample, double alpha) throws NullArgumentException, NumberIsTooSmallException, OutOfRangeException, MaxCountExceededException
public static double tTest(double mu, double[] sample) throws NullArgumentException, NumberIsTooSmallException, MaxCountExceededException
public static boolean tTest(double mu, StatisticalSummary sampleStats, double alpha) throws NullArgumentException, NumberIsTooSmallException, OutOfRangeException, MaxCountExceededException
public static double tTest(double mu, StatisticalSummary sampleStats) throws NullArgumentException, NumberIsTooSmallException, MaxCountExceededException
public static boolean tTest(double[] sample1, double[] sample2, double alpha) throws NullArgumentException, NumberIsTooSmallException, OutOfRangeException, MaxCountExceededException
public static double tTest(double[] sample1, double[] sample2) throws NullArgumentException, NumberIsTooSmallException, MaxCountExceededException
public static boolean tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2, double alpha) throws NullArgumentException, NumberIsTooSmallException, OutOfRangeException, MaxCountExceededException
public static double tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws NullArgumentException, NumberIsTooSmallException, MaxCountExceededException
public static double chiSquare(double[] expected, long[] observed) throws NotPositiveException, NotStrictlyPositiveException, DimensionMismatchException
public static double chiSquare(long[][] counts) throws NullArgumentException, NotPositiveException, DimensionMismatchException
public static boolean chiSquareTest(double[] expected, long[] observed, double alpha) throws NotPositiveException, NotStrictlyPositiveException, DimensionMismatchException, OutOfRangeException, MaxCountExceededException
public static double chiSquareTest(double[] expected, long[] observed) throws NotPositiveException, NotStrictlyPositiveException, DimensionMismatchException, MaxCountExceededException
public static boolean chiSquareTest(long[][] counts, double alpha) throws NullArgumentException, DimensionMismatchException, NotPositiveException, OutOfRangeException, MaxCountExceededException
public static double chiSquareTest(long[][] counts) throws NullArgumentException, DimensionMismatchException, NotPositiveException, MaxCountExceededException
public static double chiSquareDataSetsComparison(long[] observed1, long[] observed2) throws DimensionMismatchException, NotPositiveException, ZeroException
DimensionMismatchException
NotPositiveException
ZeroException
ChiSquareTest.chiSquareDataSetsComparison(long[], long[])
public static double chiSquareTestDataSetsComparison(long[] observed1, long[] observed2) throws DimensionMismatchException, NotPositiveException, ZeroException, MaxCountExceededException
public static boolean chiSquareTestDataSetsComparison(long[] observed1, long[] observed2, double alpha) throws DimensionMismatchException, NotPositiveException, ZeroException, OutOfRangeException, MaxCountExceededException
public static double oneWayAnovaFValue(Collection<double[]> categoryData) throws NullArgumentException, DimensionMismatchException
NullArgumentException
DimensionMismatchException
OneWayAnova.anovaFValue(Collection)
public static double oneWayAnovaPValue(Collection<double[]> categoryData) throws NullArgumentException, DimensionMismatchException, ConvergenceException, MaxCountExceededException
public static boolean oneWayAnovaTest(Collection<double[]> categoryData, double alpha) throws NullArgumentException, DimensionMismatchException, OutOfRangeException, ConvergenceException, MaxCountExceededException
public static double g(double[] expected, long[] observed) throws NotPositiveException, NotStrictlyPositiveException, DimensionMismatchException
NotPositiveException
NotStrictlyPositiveException
DimensionMismatchException
GTest.g(double[], long[])
public static double gTest(double[] expected, long[] observed) throws NotPositiveException, NotStrictlyPositiveException, DimensionMismatchException, MaxCountExceededException
public static double gTestIntrinsic(double[] expected, long[] observed) throws NotPositiveException, NotStrictlyPositiveException, DimensionMismatchException, MaxCountExceededException
public static boolean gTest(double[] expected, long[] observed, double alpha) throws NotPositiveException, NotStrictlyPositiveException, DimensionMismatchException, OutOfRangeException, MaxCountExceededException
public static double gDataSetsComparison(long[] observed1, long[] observed2) throws DimensionMismatchException, NotPositiveException, ZeroException
DimensionMismatchException
NotPositiveException
ZeroException
GTest.gDataSetsComparison(long[], long[])
public static double rootLogLikelihoodRatio(long k11, long k12, long k21, long k22) throws DimensionMismatchException, NotPositiveException, ZeroException
DimensionMismatchException
NotPositiveException
ZeroException
GTest.rootLogLikelihoodRatio(long, long, long, long)
public static double gTestDataSetsComparison(long[] observed1, long[] observed2) throws DimensionMismatchException, NotPositiveException, ZeroException, MaxCountExceededException
public static boolean gTestDataSetsComparison(long[] observed1, long[] observed2, double alpha) throws DimensionMismatchException, NotPositiveException, ZeroException, OutOfRangeException, MaxCountExceededException
public static double kolmogorovSmirnovStatistic(RealDistribution dist, double[] data) throws InsufficientDataException, NullArgumentException
public static double kolmogorovSmirnovTest(RealDistribution dist, double[] data) throws InsufficientDataException, NullArgumentException
public static double kolmogorovSmirnovTest(RealDistribution dist, double[] data, boolean strict) throws InsufficientDataException, NullArgumentException
public static boolean kolmogorovSmirnovTest(RealDistribution dist, double[] data, double alpha) throws InsufficientDataException, NullArgumentException
public static double kolmogorovSmirnovStatistic(double[] x, double[] y) throws InsufficientDataException, NullArgumentException
InsufficientDataException
NullArgumentException
KolmogorovSmirnovTest.kolmogorovSmirnovStatistic(double[], double[])
public static double kolmogorovSmirnovTest(double[] x, double[] y) throws InsufficientDataException, NullArgumentException
InsufficientDataException
NullArgumentException
KolmogorovSmirnovTest.kolmogorovSmirnovTest(double[], double[])
public static double kolmogorovSmirnovTest(double[] x, double[] y, boolean strict) throws InsufficientDataException, NullArgumentException
public static double exactP(double d, int m, int n, boolean strict)
KolmogorovSmirnovTest.exactP(double, int, int, boolean)
public static double approximateP(double d, int n, int m)
KolmogorovSmirnovTest.approximateP(double, int, int)
public static double monteCarloP(double d, int n, int m, boolean strict, int iterations)
KolmogorovSmirnovTest.monteCarloP(double, int, int, boolean, int)
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.