public final class TestUtils extends Object
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 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)
See TTest#
homoscedasticT(fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary,
fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary)
|
static double |
homoscedasticTTest(double[] sample1,
double[] sample2) |
static boolean |
homoscedasticTTest(double[] sample1,
double[] sample2,
double alpha) |
static double |
homoscedasticTTest(StatisticalSummary sampleStats1,
StatisticalSummary sampleStats2)
See TTest#
homoscedasticTTest(fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary,
fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary)
|
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)
See TTest#
t(fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary,
fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary)
|
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)
See fr.cnes.sirius.patrius.math.stat.inference.TTest#
tTest(fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary,
fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary)
|
static boolean |
tTest(StatisticalSummary sampleStats1,
StatisticalSummary sampleStats2,
double alpha)
See fr.cnes.sirius.patrius.math.stat.inference.TTest#
tTest(fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary,
fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary, double)
|
public static double homoscedasticT(double[] sample1, double[] sample2)
sample1
- array of sample data valuessample2
- array of sample data valuesTTest.homoscedasticT(double[], double[])
public static double homoscedasticT(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2)
sampleStats1
- StatisticalSummary describing data from the first samplesampleStats2
- StatisticalSummary describing data from the second samplepublic static boolean homoscedasticTTest(double[] sample1, double[] sample2, double alpha)
sample1
- array of sample data valuessample2
- array of sample data valuesalpha
- significance level of the testTTest.homoscedasticTTest(double[], double[], double)
public static double homoscedasticTTest(double[] sample1, double[] sample2)
sample1
- array of sample data valuessample2
- array of sample data valuesTTest.homoscedasticTTest(double[], double[])
public static double homoscedasticTTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2)
sampleStats1
- StatisticalSummary describing data from the first samplesampleStats2
- StatisticalSummary describing data from the second samplepublic static double pairedT(double[] sample1, double[] sample2)
sample1
- array of sample data valuessample2
- array of sample data valuesTTest.pairedT(double[], double[])
public static boolean pairedTTest(double[] sample1, double[] sample2, double alpha)
sample1
- array of sample data valuessample2
- array of sample data valuesalpha
- significance level of the testTTest.pairedTTest(double[], double[], double)
public static double pairedTTest(double[] sample1, double[] sample2)
sample1
- array of sample data valuessample2
- array of sample data valuesTTest.pairedTTest(double[], double[])
public static double t(double mu, double[] observed)
mu
- comparison constantobserved
- array of valuesTTest.t(double, double[])
public static double t(double mu, StatisticalSummary sampleStats)
mu
- comparison constantsampleStats
- DescriptiveStatistics holding sample summary statitsticsTTest.t(double, fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary)
public static double t(double[] sample1, double[] sample2)
sample1
- array of sample data valuessample2
- array of sample data valuesTTest.t(double[], double[])
public static double t(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2)
sampleStats1
- StatisticalSummary describing data from the first samplesampleStats2
- StatisticalSummary describing data from the second samplepublic static boolean tTest(double mu, double[] sample, double alpha)
mu
- constant value to compare sample mean againstsample
- array of sample data valuesalpha
- significance level of the testTTest.tTest(double, double[], double)
public static double tTest(double mu, double[] sample)
mu
- constant value to compare sample mean againstsample
- array of sample data valuesTTest.tTest(double, double[])
public static boolean tTest(double mu, StatisticalSummary sampleStats, double alpha)
mu
- constant value to compare sample mean againstsampleStats
- StatisticalSummary describing sample data valuesalpha
- significance level of the testTTest.tTest(double, fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary, double)
public static double tTest(double mu, StatisticalSummary sampleStats)
mu
- constant value to compare sample mean againstsampleStats
- StatisticalSummary describing sample dataTTest.tTest(double, fr.cnes.sirius.patrius.math.stat.descriptive.StatisticalSummary)
public static boolean tTest(double[] sample1, double[] sample2, double alpha)
sample1
- array of sample data valuessample2
- array of sample data valuesalpha
- significance level of the testTTest.tTest(double[], double[], double)
public static double tTest(double[] sample1, double[] sample2)
sample1
- array of sample data valuessample2
- array of sample data valuesTTest.tTest(double[], double[])
public static boolean tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2, double alpha)
sampleStats1
- StatisticalSummary describing data from the first samplesampleStats2
- StatisticalSummary describing data from the second samplealpha
- significance level of the testpublic static double tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2)
sampleStats1
- StatisticalSummary describing data from the first samplesampleStats2
- StatisticalSummary describing data from the second samplepublic static double chiSquare(double[] expected, long[] observed)
observed
- array of observed frequency countsexpected
- array of expected frequency countsChiSquareTest.chiSquare(double[], long[])
public static double chiSquare(long[][] counts)
counts
- array representation of 2-way tableChiSquareTest.chiSquare(long[][])
public static boolean chiSquareTest(double[] expected, long[] observed, double alpha)
observed
- array of observed frequency countsexpected
- array of expected frequency countsalpha
- significance level of the testChiSquareTest.chiSquareTest(double[], long[], double)
public static double chiSquareTest(double[] expected, long[] observed)
observed
- array of observed frequency countsexpected
- array of expected frequency countsChiSquareTest.chiSquareTest(double[], long[])
public static boolean chiSquareTest(long[][] counts, double alpha)
counts
- array representation of 2-way tablealpha
- significance level of the testChiSquareTest.chiSquareTest(long[][], double)
public static double chiSquareTest(long[][] counts)
counts
- array representation of 2-way tableChiSquareTest.chiSquareTest(long[][])
public static double chiSquareDataSetsComparison(long[] observed1, long[] observed2)
observed1
- array of observed frequency counts of the first data setobserved2
- array of observed frequency counts of the second data setChiSquareTest.chiSquareDataSetsComparison(long[], long[])
public static double chiSquareTestDataSetsComparison(long[] observed1, long[] observed2)
observed1
- array of observed frequency counts of the first data setobserved2
- array of observed frequency counts of the second data setChiSquareTest.chiSquareTestDataSetsComparison(long[], long[])
public static boolean chiSquareTestDataSetsComparison(long[] observed1, long[] observed2, double alpha)
observed1
- array of observed frequency counts of the first data setobserved2
- array of observed frequency counts of the second data setalpha
- significance level of the testChiSquareTest.chiSquareTestDataSetsComparison(long[], long[],
double)
public static double oneWayAnovaFValue(Collection<double[]> categoryData)
categoryData
- Collection
of double[]
arrays each containing data for one categoryOneWayAnova.anovaFValue(Collection)
public static double oneWayAnovaPValue(Collection<double[]> categoryData)
categoryData
- Collection
of double[]
arrays each containing data for one categoryOneWayAnova.anovaPValue(Collection)
public static boolean oneWayAnovaTest(Collection<double[]> categoryData, double alpha)
categoryData
- Collection
of double[]
arrays each containing data for one categoryalpha
- significance level of the testOneWayAnova.anovaTest(Collection,double)
public static double g(double[] expected, long[] observed)
observed
- array of observed frequency countsexpected
- array of expected frequency countsGTest.g(double[], long[])
public static double gTest(double[] expected, long[] observed)
observed
- array of observed frequency countsexpected
- array of expected frequency countsGTest.gTest(double[], long[] )
public static double gTestIntrinsic(double[] expected, long[] observed)
observed
- array of observed frequency countsexpected
- array of expected frequency countsGTest.gTestIntrinsic(double[], long[] )
public static boolean gTest(double[] expected, long[] observed, double alpha)
observed
- array of observed frequency countsexpected
- array of expected frequency countsalpha
- significance level of the testGTest.gTest(double[],long[],double)
public static double gDataSetsComparison(long[] observed1, long[] observed2)
observed1
- array of observed frequency counts of the first data setobserved2
- array of observed frequency counts of the second data
setGTest.gDataSetsComparison(long[], long[])
public static double rootLogLikelihoodRatio(long k11, long k12, long k21, long k22)
k11
- number of times the two events occurred together (AB)k12
- number of times the second event occurred WITHOUT the
first event (notA,B)k21
- number of times the first event occurred WITHOUT the
second event (A, notB)k22
- number of times something else occurred (i.e. was neither
of these events (notA, notB)GTest.rootLogLikelihoodRatio(long, long, long, long)
public static double gTestDataSetsComparison(long[] observed1, long[] observed2)
observed1
- array of observed frequency counts of the first data setobserved2
- array of observed frequency counts of the second data
setGTest.gTestDataSetsComparison(long[], long[])
public static boolean gTestDataSetsComparison(long[] observed1, long[] observed2, double alpha)
observed1
- array of observed frequency counts of the first data setobserved2
- array of observed frequency counts of the second data
setalpha
- significance level of the testGTest.gTestDataSetsComparison(long[],long[],double)
Copyright © 2023 CNES. All rights reserved.