Menu

Commit [r26834]  Maximize  Restore  History

Implemented the target functions for the saturation recovery exponential curve.

In the Python target function class Relax_fit_opt, the new func_sat(), dfunc_sat() and d2func_sat()
methods have been created as wrappers for the new C functions. These are aliased to func(), dfunc()
and d2func() in the __init__() method.

In the target_functions/exponential.c C file, the functions exponential_sat(),
exponential_sat_dIinf(), exponential_sat_dR(), exponential_sat_dIinf2(), exponential_sat_dR_dIinf()
and exponential_sat_dR2() have been created to implement the function, gradient, and Hessian for the
equation I = Iinf * (1 - exp(-R.t)).

In the target_functions/relax_fit.c file, the functions func_sat(), dfunc_sat(), d2func_sat(),
jacobian_sat() and jacobian_chi2_sat() have been created as duplications of the *_exp() functions,
but pointing to the exponential_sat*() functions and using Iinf instead of I0.

bugman 2014-11-29

changed /trunk/target_functions/exponential.c
changed /trunk/target_functions/exponential.h
changed /trunk/target_functions/relax_fit.c
changed /trunk/target_functions/relax_fit.h
changed /trunk/target_functions/relax_fit_wrapper.py
/trunk/target_functions/exponential.c Diff Switch to side-by-side view
Loading...
/trunk/target_functions/exponential.h Diff Switch to side-by-side view
Loading...
/trunk/target_functions/relax_fit.c Diff Switch to side-by-side view
Loading...
/trunk/target_functions/relax_fit.h Diff Switch to side-by-side view
Loading...
/trunk/target_functions/relax_fit_wrapper.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.