Re: Apache Commons Math of Curve Fitting how to constraint Parameters

2022-01-24 Thread Gilles Sadowski
Hello. Le lun. 24 janv. 2022 à 08:21, qiqi tang a écrit : > > *HI Gilles Sadowski,* > > > > @Overridepublic double[] fit(Collection points) { > final double[] p = super.fit(points); > return new double[] { > constrainedM.value(p[0]), >

Re: Apache Commons Math of Curve Fitting how to constraint Parameters

2022-01-23 Thread qiqi tang
*HI Gilles Sadowski,* @Overridepublic double[] fit(Collection points) { final double[] p = super.fit(points); return new double[] { constrainedM.value(p[0]), constrainedK.value(p[1]), p[2] }; } This method Just maps the end

Re: Apache Commons Math of Curve Fitting how to constraint Parameters

2022-01-20 Thread Gilles Sadowski
Hello. Le jeu. 20 janv. 2022 à 15:06, qiqi tang a écrit : > > Dear Sir/Madam, >I recently used the CurveFitter tool inside the commons package and > I found a problem that I couldn't constrain the relevant parameters. A possible approach is to transform the relevant parameters so that

Apache Commons Math of Curve Fitting how to constraint Parameters

2022-01-20 Thread qiqi tang
Dear Sir/Madam, I recently used the CurveFitter tool inside the commons package and I found a problem that I couldn't constrain the relevant parameters. The specific relevant codes are as follows: public class MyFuncFitter extends AbstractCurveFitter { @Override protected