for (int i = 0; i < nPts; ++i) {
// xValues[i] = -5. + 10 * i / (nPts - 1);
//xValues[i] = 3. * (randObj.nextDouble() + .5);
xValuesNom[i] = xValues[i] / std - mean / std;
yValues[i] = func.evaluate(xValuesNom[i]);
}
PolynomialsLeastSquaresFitterResult resultNom = regObj.regressVerbose(xValues, yValues, degree, true);
PolynomialsLeastSquaresFitterResult result = regObj.regressVerbose(xValuesNom, yValues, degree, false);