Le dim. 31 juil. 2022 à 03:46, Yaqiang Wang <yaqiang.w...@gmail.com> a écrit :
>
> Gilles,
>
> Thanks for your reply! Concretely to the point, I want to implement SciPy
> curve_fit function using Java and Jython through Apache commons math
> library. Any idea of it?

I guess that your function is multivariate (?); otherwise you'd use the
"SimpleCurveFitter" class (from package "o.a.c.math4.legacy.fitting".[1]

The non-linear least-squares utility is defined in package
"o.a.c.math4.legacy.fitting.leastsquares".[2]
This functionality lets the user provide
 * the (multivariate) function
 * the Jacobian matrix
Do I understand correctly that you want to implement a utility that
automatically generates the Jacobian through numerical differentiation
of the function?

Regards,
Gilles

[1] 
https://commons.apache.org/proper/commons-math/commons-math4-legacy/apidocs/org/apache/commons/math4/legacy/fitting/SimpleCurveFitter.html
[2] 
https://commons.apache.org/proper/commons-math/commons-math4-legacy/apidocs/org/apache/commons/math4/legacy/fitting/leastsquares/package-summary.html

> > [...]

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to