mailr4742 - /branches/N_state_model/maths_fns/n_state_model.py


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

Header


Content

Posted by edward on January 15, 2008 - 14:23:
Author: bugman
Date: Tue Jan 15 14:23:38 2008
New Revision: 4742

URL: http://svn.gna.org/viewcvs/relax?rev=4742&view=rev
Log:
Updated the func() method to return the chi-squared value.

The back calculated reduced tensor elements is still missing.


Modified:
    branches/N_state_model/maths_fns/n_state_model.py

Modified: branches/N_state_model/maths_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/maths_fns/n_state_model.py?rev=4742&r1=4741&r2=4742&view=diff
==============================================================================
--- branches/N_state_model/maths_fns/n_state_model.py (original)
+++ branches/N_state_model/maths_fns/n_state_model.py Tue Jan 15 14:23:38 2008
@@ -19,6 +19,9 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
 #
 #                                                                            
 #
 
###############################################################################
+
+# relax module imports.
+from chi2 import chi2
 
 
 class N_state_opt:
@@ -63,3 +66,6 @@
         @return:        The chi-squared or SSE value.
         @type return:   float
         """
+
+        # Return the chi-squared value.
+        return chi2(self.red_data, red_bc_data, self.red_errors)




Related Messages


Powered by MHonArc, Updated Tue Jan 15 14:40:09 2008