for (int i=0; i<values[0].length; i++) {
values[0][i] = -9 + i * 2;
values[1][i] = target.map(new float[]{values[0][i]});
}
Function fitted = lcf.fit(values[0], values[1]);
// Plotter.plot(target, -10, 0.1f, 10, "target");
// Plotter.plot(fitted, -10, 0.5f, 10, "fitted");
float targetVal = 0f;