 24 Jan, 2009 1 commit


Liam Healy authored
Moved gslmfunction, defmfunction, and gslmfunctionfdf from rootsmulti.lisp to generic.lisp because they are common to several files in the solveminimizefit module. Made arguments default instead of required in #'linearmfit, linearmfitsvd, weightedlinearmfit, weightedlinearmfitsvd. Most of these do not have examples, so untested. This required new functions #'defaultcovariance, #'defaultllsworkspace. Renamed examples to #'linearleastsquaresunivariateexample and #'linearleastsquaresmultivariateexample, and changed to 'printdetails. Revised definitions in nonlinear least squares to streamline data flow; there is no setup function or global predeclaration of the number of parameters or observations required anymore. The example function now called nonlinearleastsquaresexample will take the number of observations and the fitter method as optional arguments.

 20 Jan, 2009 1 commit


Liam Healy authored
Coverted required args to optional args defmfun weightedlinearmfit and replaced 'parameters with 'parametersorsize. Added printsteps options for several more examples, and put the newline at the end of the format string. Added tests; CCL 64 bit now fails one of the linear least squares (returns zeros) and the nonlinear least squares (good to 6 or so significant figures). SBCL 64: TOTAL: 1231 assertions passed, 5 failed, 0 execution errors. CCL 64: TOTAL: 1234 assertions passed, 2 failed, 0 execution errors.
