double p = getSignificance(correlation1, correlation2, n1, n2);
/** * @throws MathException * @throws IllegalArgumentException * @see org.tud.sir.util.statistics.Significance#getSignificance(double[], double[]) */ public static double getSignificance(List<Double> list1, List<Double> list2) throws IllegalArgumentException, MathException { double[] doubleArray1 = new double[list1.size()]; double[] doubleArray2 = new double[list2.size()]; int off1 = 0; for (double item : list1) { doubleArray1[off1] = item; off1++; } int off2 = 0; for (double item : list2) { doubleArray2[off2] = item; off2++; } return getSignificance(doubleArray1, doubleArray2); }