mailr3184 - /1.3/test_suite/unit_tests/maths_fns/test_chi2.py


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

Header


Content

Posted by edward on March 14, 2007 - 07:38:
Author: bugman
Date: Wed Mar 14 07:37:39 2007
New Revision: 3184

URL: http://svn.gna.org/viewcvs/relax?rev=3184&view=rev
Log:
More docstring improvements for the chi-square function unit tests.


Modified:
    1.3/test_suite/unit_tests/maths_fns/test_chi2.py

Modified: 1.3/test_suite/unit_tests/maths_fns/test_chi2.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/maths_fns/test_chi2.py?rev=3184&r1=3183&r2=3184&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/maths_fns/test_chi2.py (original)
+++ 1.3/test_suite/unit_tests/maths_fns/test_chi2.py Wed Mar 14 07:37:39 2007
@@ -67,13 +67,13 @@
     def test_chi2(self):
         """Unit test for the value returned by the chi2 function.
 
-        For the following data, the chi-squared value is 2.5
+        The chi-squared value is 2.5 for the following data
 
-            data =      [1.0, 1.5,  2.0, 2.5,  3.0],
+            data =      | 1.0  1.5  2.0  2.5  3.0 |,
 
-            back_calc = [0.9, 1.45, 2.0, 2.55, 3.1],
+            back_calc = | 0.9  1.45 2.0  2.55 3.1 |,
 
-            errors =    [0.1, 0.1,  0.1, 0.1,  0.1].
+            errors =    | 0.1  0.1  0.1  0.1  0.1 |.
         """
 
         # Get the chi-squared value.
@@ -88,14 +88,14 @@
 
         The chi-squared gradient is [0, 10] for the following data
 
-            data =              [1.0, 1.5,  2.0, 2.5,  3.0],
+            data =              |  1.0  1.5  2.0  2.5  3.0 |,
 
-            back_calc =         [0.9, 1.45, 2.0, 2.55, 3.1],
+            back_calc =         |  0.9  1.45 2.0  2.55 3.1 |,
 
-            back_calc_grad =    | 0.1,  0.2, 0.3, 0.2, 0.1|
-                                |-0.2, -0.1, 0.0, 0.1, 0.2|,
+            back_calc_grad =    |  0.1  0.2  0.3  0.2  0.1 |
+                                | -0.2 -0.1  0.0  0.1  0.2 |,
 
-            errors =            [0.1, 0.1,  0.1, 0.1,  0.1],
+            errors =            |  0.1  0.1  0.1  0.1  0.1 |.
         """
 
         # Initial gradient.




Related Messages


Powered by MHonArc, Updated Wed Mar 14 07:40:09 2007