// Test ftest
System.out.println("Testing ftest");
// Generate two gaussian distributions with different variances
Normaldev ndev=new Normaldev(0.0,1.0,17);
for (j=0;j<NPTS;j++) data1[j]=ndev.dev();
avevar(data1,ave1,var1);
for (j=0;j<NPTS;j++) data1[j] -= ave1.val;
for (j=0;j<NPTS;j++) data2[j]=data1[j];
ftest(data1,data2,f,prob);
// System.out.printf(1.0-prob << " %f\n", 1.0-f);