mailr27211 - /trunk/specific_analyses/api_base.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by tlinnet on January 16, 2015 - 23:20:
Author: tlinnet
Date: Fri Jan 16 23:20:08 2015
New Revision: 27211

URL: http://svn.gna.org/viewcvs/relax?rev=27211&view=rev
Log:
Implemented the api_base method of return_error_sum_squares(), as raising an 
error if not defined for the api for the pipe_type.

Task #7882 (https://gna.org/task/?7882): Implement Monte-Carlo simulation, 
where errors are generated with width of standard deviation or residuals.

Modified:
    trunk/specific_analyses/api_base.py

Modified: trunk/specific_analyses/api_base.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/api_base.py?rev=27211&r1=27210&r2=27211&view=diff
==============================================================================
--- trunk/specific_analyses/api_base.py (original)
+++ trunk/specific_analyses/api_base.py Fri Jan 16 23:20:08 2015
@@ -596,6 +596,19 @@
         raise RelaxImplementError('return_error')
 
 
+    def return_error_sum_squares(self, data_id=None):
+        """Return the standard deviation from the sum of squares of the 
residuals from the optimisation.
+
+        @keyword data_id:   The data identification information, as yielded 
by the base_data_loop() generator method.
+        @type data_id:      anything
+        @return:            The array of data error values.
+        @rtype:             list of float
+        """
+
+        # Not implemented.
+        raise RelaxImplementError('return_error_sum_squares')
+
+
     def return_grace_string(self, param):
         """Return the Grace string representation of the parameter.
 




Related Messages


Powered by MHonArc, Updated Fri Jan 16 23:40:02 2015