XeTolerance Class Reference
Tolerance checker.  
More...
#include <XeMath.h>
List of all members.
Public Member Functions | 
| bool  | check (vector< double > &d, bool print=true) | 
|   | Check that n double inside a vector are equal within tolerance.  
  | 
| bool  | check (double *d, int n, bool print=true) | 
|   | Check that n double are equal within tolerance.  
  | 
| bool  | check (double d1, double d2, double d3, double d4, bool print=true) | 
|   | Check that 4 double are equal within tolerance.  
  | 
| bool  | check (double d1, double d2, double d3, bool print=true) | 
|   | Check that 3 double are equal within tolerance.  
  | 
| bool  | check (double d1, double d2, bool print=true) | 
|   | Check that 2 double are equal within tolerance.  
  | 
|   | XeTolerance (double epsilon) | 
|   | Constructor.  
  | 
| 
  | ~XeTolerance () | 
|   | Destructor. 
  | 
Protected Attributes | 
| double  | epsilon | 
Detailed Description
Tolerance checker. 
Constructor & Destructor Documentation
      
        
          | XeTolerance::XeTolerance  | 
          ( | 
          double  | 
           epsilon | 
           )  | 
           | 
        
      
 
Constructor. 
- Parameters:
 - 
  
     | epsilon  | Accuracy for tolerance check  | 
  
   
 
 
Member Function Documentation
      
        
          | bool XeTolerance::check  | 
          ( | 
          vector< double > &  | 
           d,  | 
        
        
           | 
           | 
          bool  | 
           print = true |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
Check that n double inside a vector are equal within tolerance. 
- Parameters:
 - 
  
     | d  | vector of values  | 
     | print  | do we print a message in case of disagreement?  | 
  
   
- Returns:
 - true if within tolerance 
 
 
 
      
        
          | bool XeTolerance::check  | 
          ( | 
          double *  | 
           d,  | 
        
        
           | 
           | 
          int  | 
           n,  | 
        
        
           | 
           | 
          bool  | 
           print = true |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
Check that n double are equal within tolerance. 
- Parameters:
 - 
  
     | d  | values  | 
     | n  | number of values  | 
     | print  | do we print a message in case of disagreement?  | 
  
   
- Returns:
 - true if within tolerance 
 
 
 
      
        
          | bool XeTolerance::check  | 
          ( | 
          double  | 
           d1,  | 
        
        
           | 
           | 
          double  | 
           d2,  | 
        
        
           | 
           | 
          double  | 
           d3,  | 
        
        
           | 
           | 
          double  | 
           d4,  | 
        
        
           | 
           | 
          bool  | 
           print = true |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
Check that 4 double are equal within tolerance. 
- Parameters:
 - 
  
     | d1  | first value  | 
     | d2  | second value  | 
     | d3  | third value  | 
     | d4  | fourth value  | 
     | print  | do we print a message in case of disagreement?  | 
  
   
- Returns:
 - true if within tolerance 
 
 
 
      
        
          | bool XeTolerance::check  | 
          ( | 
          double  | 
           d1,  | 
        
        
           | 
           | 
          double  | 
           d2,  | 
        
        
           | 
           | 
          double  | 
           d3,  | 
        
        
           | 
           | 
          bool  | 
           print = true |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
Check that 3 double are equal within tolerance. 
- Parameters:
 - 
  
     | d1  | first value  | 
     | d2  | second value  | 
     | d3  | third value  | 
     | print  | do we print a message in case of disagreement?  | 
  
   
- Returns:
 - true if within tolerance 
 
 
 
      
        
          | bool XeTolerance::check  | 
          ( | 
          double  | 
           d1,  | 
        
        
           | 
           | 
          double  | 
           d2,  | 
        
        
           | 
           | 
          bool  | 
           print = true |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
Check that 2 double are equal within tolerance. 
- Parameters:
 - 
  
     | d1  | first value  | 
     | d2  | second value  | 
     | print  | do we print a message in case of disagreement?  | 
  
   
- Returns:
 - true if within tolerance 
 
 
 
Member Data Documentation
absolute (not relative) tolerance 
 
 
The documentation for this class was generated from the following file:
- /home/lellouch/Dropbox/Xenon/Xephyr/XeMath.h