Chi2Dist Class Reference
Chi2 distribution.  
More...
#include <XeStat.h>
List of all members.
Public Member Functions | 
| double  | cdf (double x) | 
|   | return the cumulated distribution function  
  | 
|   | Chi2Dist (int dof) | 
|   | Regular constructor.  
  | 
| 
  | Chi2Dist () | 
|   | Empty constructor for ROOT. 
  | 
| 
double  | generate () | 
|   | generate a pseudo random variable according to this distribution 
  | 
| double  | pdf (double x) | 
|   | return the normalized probability distribution function  
  | 
| void  | setNdof (int ndof) | 
|   | set number of degrees of freedom  
  | 
Static Public Member Functions | 
| static double  | above (double chi2, int ndof) | 
|   | Compute the integreal above a given chi2.  
  | 
| static double  | below (double chi2, int ndof) | 
|   | Compute the integreal below a given chi2.  
  | 
| static double  | between (double chi2_1, double chi2_2, int ndof) | 
|   | Compute the integral between two chi2.  
  | 
| static double  | generate (int dof) | 
|   | generate a pseduo ranodm variable distributed accoring to a chi2 dist.  
  | 
| static double  | pdf (double x, int dof) | 
|   | Compute the pdf (static method).  
  | 
Protected Attributes | 
| 
int  | ndof | 
Detailed Description
Chi2 distribution. 
Constructor & Destructor Documentation
      
        
          | Chi2Dist::Chi2Dist  | 
          ( | 
          int  | 
           dof | 
           )  | 
           | 
        
      
 
Regular constructor. 
- Parameters:
 - 
  
     | ndof  | number of degrees of freedom  | 
  
   
 
 
Member Function Documentation
      
        
          | static double Chi2Dist::above  | 
          ( | 
          double  | 
           chi2,  | 
        
        
           | 
           | 
          int  | 
           ndof |   | 
        
        
           | 
          ) | 
           |  |  [static] | 
        
      
 
Compute the integreal above a given chi2. 
- Parameters:
 - 
  
     | chi2  | tested chi2  | 
     | dof  | number of degrees of freedom  | 
  
   
 
 
      
        
          | static double Chi2Dist::below  | 
          ( | 
          double  | 
           chi2,  | 
        
        
           | 
           | 
          int  | 
           ndof |   | 
        
        
           | 
          ) | 
           |  |  [static] | 
        
      
 
Compute the integreal below a given chi2. 
- Parameters:
 - 
  
     | chi2  | tested chi2  | 
     | dof  | number of degrees of freedom  | 
  
   
 
 
      
        
          | static double Chi2Dist::between  | 
          ( | 
          double  | 
           chi2_1,  | 
        
        
           | 
           | 
          double  | 
           chi2_2,  | 
        
        
           | 
           | 
          int  | 
           ndof |   | 
        
        
           | 
          ) | 
           |  |  [static] | 
        
      
 
Compute the integral between two chi2. 
- Parameters:
 - 
  
     | chi2_1  | lower bound  | 
     | chi2_2  | upper bound  | 
     | dof  | number of degrees of freedom  | 
  
   
 
 
      
        
          | double Chi2Dist::cdf  | 
          ( | 
          double  | 
           x | 
           )  | 
           [virtual] | 
        
      
 
return the cumulated distribution function 
- Parameters:
 - 
  
  
 
Implements XeDist.
 
 
      
        
          | static double Chi2Dist::generate  | 
          ( | 
          int  | 
           dof | 
           )  | 
           [static] | 
        
      
 
generate a pseduo ranodm variable distributed accoring to a chi2 dist. 
- Parameters:
 - 
  
     | dof  | number of degrees of freedom  | 
  
   
 
 
      
        
          | static double Chi2Dist::pdf  | 
          ( | 
          double  | 
           x,  | 
        
        
           | 
           | 
          int  | 
           dof |   | 
        
        
           | 
          ) | 
           |  |  [static] | 
        
      
 
Compute the pdf (static method). 
- Parameters:
 - 
  
     | x  | random variable  | 
     | dof  | number of degrees of freedom  | 
  
   
 
 
      
        
          | double Chi2Dist::pdf  | 
          ( | 
          double  | 
           x | 
           )  | 
           [virtual] | 
        
      
 
return the normalized probability distribution function 
- Parameters:
 - 
  
  
 
Implements XeDist.
 
 
      
        
          | void Chi2Dist::setNdof  | 
          ( | 
          int  | 
           ndof | 
           )  | 
           | 
        
      
 
set number of degrees of freedom 
- Parameters:
 - 
  
     | ndof  | number of degrees of freedom  | 
  
   
 
 
The documentation for this class was generated from the following file:
- /home/lellouch/Dropbox/Xenon/Xephyr/XeStat.h