Menu

Commit [r25414]  Maximize  Restore  History

Speed up of the target_functions.relax_fit C module.

The variances are now precalculated in the setup() function from the errors, so that the use of the
square() function is minimised. The chi-squared equation, gradient, and Hessian functions now
accept the variance rather than standard deviation argument and hence the squaring of errors has
been removed. This avoids a lot of duplicated maths operations.

bugman 2014-08-29

changed /trunk/target_functions/c_chi2.c
changed /trunk/target_functions/c_chi2.h
changed /trunk/target_functions/relax_fit.c
changed /trunk/target_functions/relax_fit.h
/trunk/target_functions/c_chi2.c Diff Switch to side-by-side view
Loading...
/trunk/target_functions/c_chi2.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...
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.