Commit Graph

20 Commits

Author SHA1 Message Date
Wirawan Purwanto
39dddbd51d * Added module: wpylib.math.fitting.stochastic.
NOTE: Only imported verbatimly from Cr2_analysis_cbs.py CVS rev 1.143.
2015-05-28 12:04:54 -04:00
Wirawan Purwanto
e46fcec698 * Imported more recent function fitting facility from Cr2 project. 2015-05-21 11:34:03 -04:00
Wirawan Purwanto
82a55b940a * wpylib.math.fitting: Imported fit_func_base from Cr2 project.
* Added documentation on fitting methods.
2015-05-20 11:47:38 -04:00
Wirawan Purwanto
4111dc2da7 * Moved Poly_base & friends to wpylib.math.fitting.funcs_poly. 2015-05-20 10:35:48 -04:00
Wirawan Purwanto
04e78ade1d * Added extra debugging statements. 2014-02-24 16:06:40 -05:00
Wirawan Purwanto
b043fb3cdf * fit_func: Added support for lmfit-based minimization.
Tested minimally in the Cr2_analysis_cbs.py workbench (routine:
  Test_MC_FPTZ_20140206).
2014-02-07 18:25:22 -05:00
Wirawan Purwanto
869aa91109 * fit_func(): Allow non-(numpy.ndarray) args for x, y, dy.
* Documentation update.
2013-10-17 13:49:50 -04:00
Wirawan Purwanto
564d1f4364 * wpylib.math.fitting.fit_func: Added support for weight (or y uncertainty).
* For `leastsq' fit method, also introduced 'xerr' output (in outfmt=0)
  as the error estimate of the fitted parameters.
2013-08-19 15:43:49 -04:00
Wirawan Purwanto
37b0939671 * Documentation clarification. 2013-08-19 15:43:19 -04:00
Wirawan Purwanto
1421cf3bc5 * wpylib.math.fitting.fit_func: Allow Guess argument to override
machine-generated guess.
* Add 'funcalls' data key to the leastsq complete output to conform to the
  fmin-style output.
2013-08-19 10:50:54 -04:00
Wirawan Purwanto
e485cabbe8 * wpylib.math.fitting.fit_func: Added optional Funct_hook argument to
be called (for debugging purposes) every time "the" Funct function
  is called.
2013-08-13 01:05:38 -04:00
Wirawan Purwanto
cdad14e034 * Added BFGS minimization. 2013-08-09 16:51:38 -04:00
Wirawan Purwanto
9de8407dd9 * Added Test_3(). 2012-10-15 17:25:06 -04:00
Wirawan Purwanto
a0eb82ed2b * Mute debug printing. 2012-10-15 16:59:35 -04:00
Wirawan Purwanto
5b213b0ee7 * Little syntax optimization. 2012-10-15 16:45:37 -04:00
Wirawan Purwanto
414643ecde * Added testcase wpylib.math.fitting.linear.Test_2() against numpy.polyfit(). 2012-10-15 16:35:12 -04:00
Wirawan Purwanto
cb8124f699 * Provide uncertainty of both a and b fit parameters. 2012-10-15 16:12:37 -04:00
Wirawan Purwanto
87763d6e57 * wpylib.math.fitting.linear: for linear fit methods.
First method: linregr2d_SZ() from Shiwei's email in 2006.
2012-10-15 16:02:41 -04:00
Wirawan Purwanto
908a4e0682 * Rebase fit_result on result_base. 2012-10-15 16:01:46 -04:00
Wirawan Purwanto
348c204699 * Change wpylib.math.fitting module from a file into a subdirectory. 2012-10-15 15:16:02 -04:00