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);
    }
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 ) ; }
@throws MathException
@throws IllegalArgumentException
@see org.tud.sir.util.statistics.Significance#getSignificance(double[], double[])