Author: tlinnet Date: Sat Jan 17 14:16:50 2015 New Revision: 27214 URL: http://svn.gna.org/viewcvs/relax?rev=27214&view=rev Log: Reverted range of commits r27213:r27202 as this was a bad implementation. To get the distribution, one should look at the sum of squares. But this should be from the weighted sum of squares, which is stored as chi2. The API provides a method of model_statistics(), to get: k - number of parameters. n - number of data points. chi2 - the chi-squared value. Then reduced chi2 can be computed. chi2_red = chi2/(n-k) And the error distribution be drawn from this. The command used was: svn merge -r27213:r27201 . Task #7882 (https://gna.org/task/?7882): Implement Monte-Carlo simulation, where errors are generated with width of standard deviation or residuals. Modified: trunk/pipe_control/error_analysis.py trunk/specific_analyses/api_base.py trunk/specific_analyses/parameter_object.py trunk/specific_analyses/relax_disp/api.py trunk/specific_analyses/relax_disp/optimisation.py trunk/target_functions/relax_disp.py trunk/test_suite/system_tests/relax_disp.py trunk/user_functions/monte_carlo.py [This mail would be too long, it was shortened to contain the URLs only.] Modified: trunk/pipe_control/error_analysis.py URL: http://svn.gna.org/viewcvs/relax/trunk/pipe_control/error_analysis.py?rev=27214&r1=27213&r2=27214&view=diff Modified: trunk/specific_analyses/api_base.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/api_base.py?rev=27214&r1=27213&r2=27214&view=diff Modified: trunk/specific_analyses/parameter_object.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/parameter_object.py?rev=27214&r1=27213&r2=27214&view=diff Modified: trunk/specific_analyses/relax_disp/api.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_disp/api.py?rev=27214&r1=27213&r2=27214&view=diff Modified: trunk/specific_analyses/relax_disp/optimisation.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_disp/optimisation.py?rev=27214&r1=27213&r2=27214&view=diff Modified: trunk/target_functions/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/trunk/target_functions/relax_disp.py?rev=27214&r1=27213&r2=27214&view=diff Modified: trunk/test_suite/system_tests/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/relax_disp.py?rev=27214&r1=27213&r2=27214&view=diff Modified: trunk/user_functions/monte_carlo.py URL: http://svn.gna.org/viewcvs/relax/trunk/user_functions/monte_carlo.py?rev=27214&r1=27213&r2=27214&view=diff