Menu

Commit [r26845]  Maximize  Restore  History

Implemented the target functions for the inversion recovery exponential curve.

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

The target_functions/exponential_inv.c C file has been created with the functions exponential_inv(),
exponential_inv_d0(), exponential_inv_dIinf(), exponential_inv_dR(), exponential_inv_dI02(),
exponential_inv_dIinf2(), exponential_inv_dI0_dIinf(), exponential_inv_dR_dI0(),
exponential_inv_dR_dIinf() and exponential_inv_dR2() have been created to implement the function,
gradient, and Hessian for the equation I(t) = Iinf - I0*exp(-R.t).

In the target_functions/relax_fit.c file, the functions func_inv(), dfunc_inv(), d2func_inv(),
jacobian_inv() and jacobian_chi2_inv() have been created as duplications of the *_exp() functions,
but pointing to the exponential_inv*() functions and adding the Iinf dimension.

bugman 2014-11-29

changed /trunk/sconstruct
copied /trunk/target_functions/exponential.c -> /trunk/target_functions/exponential_inv.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/sconstruct 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.