@Test public void testTestCorrelations() throws MathException { assertTrue(testCorrelations(0.5, 0.74, 68, 68, 0.2)); assertTrue(testCorrelations(0.5, 0.74, 68, 68, 0.1)); assertTrue(testCorrelations(0.5, 0.74, 68, 68, 0.05)); assertFalse(testCorrelations(0.5, 0.74, 68, 68, 0.01)); assertTrue(testCorrelations(0.5, 0.7, 100, 100, 0.1)); assertTrue(testCorrelations(0.5, 0.7, 100, 100, 0.05)); assertFalse(testCorrelations(0.5, 0.7, 100, 100, 0.01)); assertFalse(testCorrelations(0.5, 0.5, 100, 100, 0.99)); }
public static boolean testCorrelations(double correlation1, double correlation2, int n1, int n2, double alpha) throws MathException { double p = getSignificance(correlation1, correlation2, n1, n2); if (p <= alpha) { return true; } else { return false; } }
Significance { public static boolean testCorrelations(double correlation1, double correlation2, int n1, int n2, double alpha) throws MathException { double p = getSignificance(correlation1, correlation2, n1, n2); if (p <= alpha) { return true; } else { return false; } } }
Significance { public static boolean testCorrelations(double correlation1, double correlation2, int n1, int n2, double alpha) throws MathException { double p = getSignificance(correlation1, correlation2, n1, n2); if (p <= alpha) { return true; } else { return false; } }  }
Significance { public static boolean testCorrelations(double correlation1, double correlation2, int n1, int n2, double alpha) throws MathException { double p = getSignificance(correlation1, correlation2, n1, n2); if (p <= alpha) { return true; } else { return false; } }  static boolean testCorrelations(double correlation1, double correlation2, int n1, int n2,
            double alpha); static double getSignificance(double[] sample1, double[] sample2); static double getSignificance(List<Double> list1, List<Double> list2); static double getSignificance(double correlation1, double correlation2, int n1, int n2); }
Significance { public static boolean testCorrelations(double correlation1, double correlation2, int n1, int n2, double alpha) throws MathException { double p = getSignificance(correlation1, correlation2, n1, n2); if (p <= alpha) { return true; } else { return false; } }  static boolean testCorrelations(double correlation1, double correlation2, int n1, int n2,
            double alpha); static double getSignificance(double[] sample1, double[] sample2); static double getSignificance(List<Double> list1, List<Double> list2); static double getSignificance(double correlation1, double correlation2, int n1, int n2);  }