#include <CachedFunction1D.h>
Public Member Functions | |
| CachedFunction1D (double min, double max, double delta, double(*function)(double)) throw () | |
| Constructor creates a look-up table for the function in the range [min,max) with step delta between x-values.   | |
| ~CachedFunction1D () throw () | |
| Deletes the table.   | |
| double | eval (double x) const throw () | 
| evaluate the function by picking a value from the look-up table.   | |
Private Member Functions | |
| CachedFunction1D () throw () | |
| not allowed to do this.   | |
| CachedFunction1D & | operator= (const CachedFunction1D &) throw () | 
| not allowed to do this.   | |
| void | makeTable () throw () | 
| called by the constructor to make the look-up table.   | |
Private Attributes | |
| double | min | 
| min value of x for which the function is calculated.   | |
| double | max | 
| min value of x for which the function is calculated.   | |
| double | delta | 
| the step in x between points in the table.   | |
| double | invdelta | 
| cached value of 1/delta.   | |
| int | nvalue | 
| the number of values in the table.   | |
| double * | values | 
| the table itself.   | |
| double(* | function )(double) | 
| a pointer to the function itself.   | |
Definition at line 17 of file CachedFunction1D.h.
      
  | 
  ||||||||||||||||||||
| 
 Constructor creates a look-up table for the function in the range [min,max) with step delta between x-values. e.g. CachedFunction1D(0., 1., 0.001, &TMath::erf ); 
 Definition at line 5 of file CachedFunction1D.cpp.  | 
  
      
  | 
  
| 
 Deletes the table. 
 Definition at line 16 of file CachedFunction1D.cpp.  | 
  
      
  | 
  
| 
 not allowed to do this. 
  | 
  
      
  | 
  
| 
 evaluate the function by picking a value from the look-up table. 
 
 
 Definition at line 57 of file CachedFunction1D.h.  | 
  
      
  | 
  
| 
 called by the constructor to make the look-up table. 
 Definition at line 20 of file CachedFunction1D.cpp.  | 
  
      
  | 
  
| 
 not allowed to do this. 
  | 
  
      
  | 
  
| 
 the step in x between points in the table. 
 Definition at line 49 of file CachedFunction1D.h.  | 
  
      
  | 
  
| 
 a pointer to the function itself. 
  | 
  
      
  | 
  
| 
 cached value of 1/delta. 
 Definition at line 50 of file CachedFunction1D.h.  | 
  
      
  | 
  
| 
 min value of x for which the function is calculated. 
 Definition at line 48 of file CachedFunction1D.h.  | 
  
      
  | 
  
| 
 min value of x for which the function is calculated. 
 Definition at line 47 of file CachedFunction1D.h.  | 
  
      
  | 
  
| 
 the number of values in the table. 
 Definition at line 51 of file CachedFunction1D.h.  | 
  
      
  | 
  
| 
 the table itself. 
 Definition at line 52 of file CachedFunction1D.h.  | 
  
 
1.3.5