Warm tip: This article is reproduced from serverfault.com, please click

Array in Excel Anylogic

发布于 2020-12-17 08:32:08

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!

Code

Questioner
Handballer73
Viewed
0
Handballer73 2020-12-17 17:53:43
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());