Commit | Date | |
---|---|---|
[r25234]
by
tlinnet
Implemented back end for estimating r2eff and errors by exponential curve fitting with scipy.optimize.leastsq. task #7822(https://gna.org/task/index.php?7822): Implement user function to estimate R2eff and associated errors for exponential curve fitting. |
2014-08-24 23:08:57 | Tree |
[r25233]
by
tlinnet
Modified check for model, to accept model as input, for error printing. task #7822(https://gna.org/task/index.php?7822): Implement user function to estimate R2eff and associated errors for exponential curve fitting. |
2014-08-24 23:08:55 | Tree |
[r25232]
by
tlinnet
Added front end user function relax_disp.r2eff_estimate() to estimate R2eff and errors by exponential curve fitting in scipy.optimize.leastsq. task #7822(https://gna.org/task/index.php?7822): Implement user function to estimate R2eff and associated errors for exponential curve fitting. |
2014-08-24 23:08:53 | Tree |
[r25231]
by
tlinnet
Implemented initial systemtest Relax_disp.test_estimate_r2eff for setting up the new user function to estimate R2eff and errors by scipy. task #7822(https://gna.org/task/index.php?7822): Implement user function to estimate R2eff and associated errors for exponential curve fitting. |
2014-08-24 23:08:50 | Tree |
[r25230]
by
tlinnet
Moved the target function for minimisation of exponential fit into the target functions folder. task #7822(https://gna.org/task/index.php?7822): Implement user function to estimate R2eff and associated errors for exponential curve fitting. |
2014-08-24 23:08:48 | Tree |
[r25229]
by
tlinnet
Added verification script, that shows that using scipy.optimize.leastsq reaches the exact same parameters as minfx for exponential curve fitting. The profiling shows that scipy.optimize.leastsq is 10X as fast as using minfx (with no linear constraints.) MINPACK is a FORTRAN90 library which solves systems of nonlinear equations, or carries out the least squares minimization of the residual of a set of linear or nonlinear equations. The verification script also shows, that a very heavy and time consuming monte carlo simulation of 2000 steps, reaches the same The return from scipy.optimize.leastsq, gives the estimated co-variance. This could be an extremely time saving step, when performing model fitting in R1rho, where The following setup illustrates the problem. Script running is: This script analyses just the R2eff values for 15 residues. The script was broken after 35 simulations. |
2014-08-24 23:08:46 | Tree |
[r25228]
by
tlinnet
Further improved the profiling of relax curve fit. This profiling shows, that Python code is about twice as slow as the C code implemented. But it also shows that optimising with scipy.optimize.leastsq is 20 X faster. Combining a function for a linear fit to guess the initial values, together A further test would be to use relax Monte-Carlo simulations for say 1000-2000 iterations, |
2014-08-24 23:08:44 | Tree |
[r25227]
by
tlinnet
Further extended the profiling script for curve fitting. Now profiling is in place for the implemented C code method in relax. A similar code should now be devised for numpy array for comparing. But this profiling shows that when contraints=True, is slowing down this procedure by a factor 10 X ! |
2014-08-22 17:17:19 | Tree |
[r25226]
by
bugman
Added Nikolai's original Matlab code to the lib.dispersion.ns_r1rho_2site module docstring. This is the code taken directly form the original funNumrho.m file, which was the origin of the code |
2014-08-22 17:00:56 | Tree |
[r25225]
by
tlinnet
Fix for looping over data indices, where tilt_angles has the si index. bug #22461(https://gna.org/bugs/?22461): NS R1rho 2-site_fit_r1 has extremely high chi2 value in systemtest Relax_disp.test_r1rho_kjaergaard_missing_r1. |
2014-08-22 14:27:25 | Tree |