I want to safe the values of an array in Excel. The 4 values are in "double[] polparams" and i want to have each values in the same row and 4 columns. Thanks for help!
final WeightedObservedPoints obs = new WeightedObservedPoints();
for(int i = 0; i < data.length; i +=2)
{
obs.add(data[i], data[i+1]);
}
final PolynomialCurveFitter fitter = PolynomialCurveFitter.create(3);
return fitter.fit(obs.toList());