【发布时间】:2021-03-27 22:22:30
【问题描述】:
我想在 Excel 中保护数组的值。这 4 个值在“double [] polparams”中,我希望每个值都在同一行和 4 列中。感谢您的帮助!
【问题讨论】:
我想在 Excel 中保护数组的值。这 4 个值在“double [] polparams”中,我希望每个值都在同一行和 4 列中。感谢您的帮助!
【问题讨论】:
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());
【讨论】:
使用这个:
for( int i = 0 ; i < polparams.length ; i++ )
excelFile.setCellValue(polparams[i], 1, 1, i);
【讨论】: