Relocate definition, optional arguments, nonlinear least squares streamline
Moved gsl-mfunction, def-mfunction, and gsl-mfunction-fdf from roots-multi.lisp to generic.lisp because they are common to several files in the solve-minimize-fit module. Made arguments default instead of required in #'linear-mfit, linear-mfit-svd, weighted-linear-mfit, weighted-linear-mfit-svd. Most of these do not have examples, so untested. This required new functions #'default-covariance, #'default-lls-workspace. Renamed examples to #'linear-least-squares-univariate-example and #'linear-least-squares-multivariate-example, and changed to 'print-details. Revised definitions in nonlinear least squares to streamline data flow; there is no setup function or global pre-declaration of the number of parameters or observations required anymore. The example function now called nonlinear-least-squares-example will take the number of observations and the fitter method as optional arguments.
Showing
- solve-minimize-fit/generic.lisp 33 additions, 1 deletionsolve-minimize-fit/generic.lisp
- solve-minimize-fit/linear-least-squares.lisp 38 additions, 22 deletionssolve-minimize-fit/linear-least-squares.lisp
- solve-minimize-fit/nonlinear-least-squares.lisp 92 additions, 78 deletionssolve-minimize-fit/nonlinear-least-squares.lisp
- solve-minimize-fit/roots-multi.lisp 1 addition, 28 deletionssolve-minimize-fit/roots-multi.lisp
- tests/linear-least-squares.lisp 2 additions, 2 deletionstests/linear-least-squares.lisp
- tests/nonlinear-least-squares.lisp 1 addition, 4 deletionstests/nonlinear-least-squares.lisp
Please register or sign in to comment