y[i] = data.y[i].doubleValue();
}
r.newSampleData(y, x);
// Fixme. Add intercept
double[] p = r.estimateRegressionParameters();
Double[] pp = new Double[data.c];
for (int j=0; j<data.c; j++) {
pp[j] = p[j];
}
System.out.println("Regression Algo: " + Arrays.toString(pp));