public static double ttest(double[] arrA, double[] arrB) { if ((arrA.length == 1) && (arrB.length == 1)) { // return a NULL value for score (does not make sense) return Double.NaN; } try { if (arrA.length == 1) { return ttest.tTest(arrA[0], arrB); } else if (arrB.length == 1) { return ttest.tTest(arrB[0], arrA); } else { return ttest.tTest(arrA, arrB); } } catch (Exception e) { e.printStackTrace(); return Double.NaN; } }
private static double tTest(double d, List<Double> group) { try { double[] arr = listToArray(group); return ttest.tTest(d, arr); } catch (Exception e) { e.printStackTrace(); return Double.NaN; } }
private static double tTest(List<Double> groupA, List<Double> groupB) { try { double[] arrA = listToArray(groupA); double[] arrB = listToArray(groupB); return ttest.tTest(arrA, arrB); } catch (Exception e) { e.printStackTrace(); return 0.0d; } }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double, org.apache.commons.math.stat.descriptive.StatisticalSummary, double) */ public static boolean tTest(double mu, StatisticalSummary sampleStats, double alpha) throws IllegalArgumentException, MathException { return tTest. tTest(mu, sampleStats, alpha); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double[], double[]) */ public static double tTest(double[] sample1, double[] sample2) throws IllegalArgumentException, MathException { return tTest.tTest(sample1, sample2); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double, double[], double) */ public static boolean tTest(double mu, double[] sample, double alpha) throws IllegalArgumentException, MathException { return tTest.tTest(mu, sample, alpha); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double, org.apache.commons.math.stat.descriptive.StatisticalSummary, double) */ public static boolean tTest(double mu, StatisticalSummary sampleStats, double alpha) throws IllegalArgumentException, MathException { return tTest. tTest(mu, sampleStats, alpha); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double, org.apache.commons.math.stat.descriptive.StatisticalSummary) */ public static double tTest(double mu, StatisticalSummary sampleStats) throws IllegalArgumentException, MathException { return tTest.tTest(mu, sampleStats); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double[], double[], double) */ public static boolean tTest(double[] sample1, double[] sample2, double alpha) throws IllegalArgumentException, MathException { return tTest.tTest(sample1, sample2, alpha); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary, double) */ public static boolean tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2, double alpha) throws IllegalArgumentException, MathException { return tTest. tTest(sampleStats1, sampleStats2, alpha); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double, double[]) */ public static double tTest(double mu, double[] sample) throws IllegalArgumentException, MathException { return tTest.tTest(mu, sample); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary) */ public static double tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws IllegalArgumentException, MathException { return tTest.tTest(sampleStats1, sampleStats2); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double, double[]) */ public static double tTest(double mu, double[] sample) throws IllegalArgumentException, MathException { return tTest.tTest(mu, sample); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double[], double[], double) */ public static boolean tTest(double[] sample1, double[] sample2, double alpha) throws IllegalArgumentException, MathException { return tTest.tTest(sample1, sample2, alpha); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary, double) */ public static boolean tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2, double alpha) throws IllegalArgumentException, MathException { return tTest. tTest(sampleStats1, sampleStats2, alpha); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary) */ public static double tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws IllegalArgumentException, MathException { return tTest.tTest(sampleStats1, sampleStats2); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double, double[], double) */ public static boolean tTest(double mu, double[] sample, double alpha) throws IllegalArgumentException, MathException { return tTest.tTest(mu, sample, alpha); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double, org.apache.commons.math.stat.descriptive.StatisticalSummary) */ public static double tTest(double mu, StatisticalSummary sampleStats) throws IllegalArgumentException, MathException { return tTest.tTest(mu, sampleStats); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(double[], double[]) */ public static double tTest(double[] sample1, double[] sample2) throws IllegalArgumentException, MathException { return tTest.tTest(sample1, sample2); }
/** * @see org.apache.commons.math.stat.inference.TTest#tTest(org.apache.commons.math.stat.descriptive.StatisticalSummary, org.apache.commons.math.stat.descriptive.StatisticalSummary) */ public static double tTest(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws IllegalArgumentException, MathException { return tTest.tTest(sampleStats1, sampleStats2); }