mailr4813 - /branches/N_state_model/specific_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 17, 2008 - 11:41:
Author: bugman
Date: Thu Jan 17 11:41:52 2008
New Revision: 4813

URL: http://svn.gna.org/viewcvs/relax?rev=4813&view=rev
Log:
Bug fix for the N-state model disassemble_param_vector() method.

The last probability for state N was being incorrectly calculated!


Modified:
    branches/N_state_model/specific_fns/n_state_model.py

Modified: branches/N_state_model/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/specific_fns/n_state_model.py?rev=4813&r1=4812&r2=4813&view=diff
==============================================================================
--- branches/N_state_model/specific_fns/n_state_model.py (original)
+++ branches/N_state_model/specific_fns/n_state_model.py Thu Jan 17 11:41:52 
2008
@@ -111,7 +111,7 @@
             probs[i] = param_vector[i]
 
         # The probability for state N.
-        probs[-1] = 1 - sum(probs[0:-2])
+        probs[-1] = 1 - sum(probs[0:-1])
 
         # The Euler angles.
         for i in xrange(cdp.N):




Related Messages


Powered by MHonArc, Updated Thu Jan 17 14:40:08 2008