yMatrix.set(row, 0, dataRow.getIdeal()[0]);
}
// Calculate the least squares solution
final QRDecomposition qr = new QRDecomposition(xMatrix);
final Matrix beta = qr.solve(yMatrix);
double sum = 0.0;
for (int i = 0; i < inputColCount; i++)
sum += yMatrix.get(i, 0);
final double mean = sum / inputColCount;