| Trees | Indices | Help | 
        
  | 
  
|---|
| 
       | 
  
Unit tests for the maths_fns.chi2 relax module.
    
  | 
|||
| 
     Inherited from   | 
  |||
    
  | 
|||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
| 
     Inherited from  Inherited from  Inherited from   | 
  |||
    
  | 
|||
| 
     Inherited from   | 
  |||
    
  | 
|||
| 
     Inherited from  Inherited from   | 
  |||
    
  | 
|||
| 
     Inherited from   | 
  |||
    
  | 
|||
  
 Create a number of objects for the calculation and testing of the chi-squared equations. 
  | 
  
 Delete all the data structures. 
  | 
  
 Unit test for the value returned by the chi2 function. The chi-squared value is 2.5 for the following data: data = | 1.0 1.5 2.0 2.5 3.0 |, back_calc = | 0.9 1.45 2.0 2.55 3.1 |, errors = | 0.1 0.1 0.1 0.1 0.1 |.  | 
  
 Unit test for the chi-squared gradient created by the dchi2 function. The chi-squared gradient is [0, 10] for the following data: 
   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_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 |.
   | 
  
 Unit test for the chi-squared gradient created by the dchi2_element function. The chi-squared gradient is [0, 10] for the following data: 
   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_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 |.
   | 
  
 Unit test for the chi-squared Hessian created by the d2chi2 function. For the data: 
   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_grad =    | 0.1    0.2    0.3    0.2    0.1   |
                       |-0.2   -0.1    0.0    0.1    0.2   |,
   back_calc_hess[0] = | 0.01   0.005  0.0    0.005  0.01  |
                       | 0.05   0.01   0.0    0.01   0.05  |,
   back_calc_hess[1] = | 0.001  0.0005 0.0    0.0005 0.001 |
                       | 0.005  0.001  0.0    0.001  0.005 |,
   errors =            | 0.1    0.1    0.1    0.1    0.1   |,
  the chi-squared hessian is: 
   Hessian = | 38.0   0.0 |
             |  0.0  20.0 |.
   | 
  
 Unit test for the chi-squared Hessian created by the d2chi2_element function. For the data: 
   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_grad =    | 0.1    0.2    0.3    0.2    0.1   |
                       |-0.2   -0.1    0.0    0.1    0.2   |,
   back_calc_hess[0] = | 0.01   0.005  0.0    0.005  0.01  |
                       | 0.05   0.01   0.0    0.01   0.05  |,
   back_calc_hess[1] = | 0.001  0.0005 0.0    0.0005 0.001 |
                       | 0.005  0.001  0.0    0.001  0.005 |,
   errors =            | 0.1    0.1    0.1    0.1    0.1   |,
  the chi-squared hessian is: 
   Hessian = | 38.0   0.0 |
             |  0.0  20.0 |.
   | 
| Trees | Indices | Help | 
        
  | 
  
|---|
| Generated by Epydoc 3.0.1 on Wed Apr 10 15:06:03 2013 | http://epydoc.sourceforge.net |