|  | 
| static void | convertValue (const T3 input, Uint8 &output) | 
|  | helper routine: convert to unsigned 8 bit value 
 | 
|  | 
| static void | convertValue (const T3 input, Sint8 &output) | 
|  | helper routine: convert to signed 8 bit value 
 | 
|  | 
| static void | convertValue (const T3 input, Uint16 &output) | 
|  | helper routine: convert to unsigned 16 bit value 
 | 
|  | 
| static void | convertValue (const T3 input, Sint16 &output) | 
|  | helper routine: convert to signed 16 bit value 
 | 
|  | 
| static void | convertValue (const T3 input, double &output) | 
|  | helper routine: convert to floating point value (double precision) 
 | 
|  | 
| static int | solve (T3 *a, T3 *b, const unsigned int n) | 
|  | solve the equation given by the two matrixes. 
 | 
|  | 
template<class T1, class T2, class T3 = double>
class DiCurveFitting< T1, T2, T3 >
Template class for polynomial curve fitting algorithm. 
template<class T1, class T2, class T3 = double> 
  
  | 
        
          | static int DiCurveFitting< T1, T2, T3 >::calculateValues | ( | const T1 | xs, |  
          |  |  | const T1 | xe, |  
          |  |  | T2 * | y, |  
          |  |  | const unsigned int | n, |  
          |  |  | const unsigned int | o, |  
          |  |  | const T3 * | c ) |  | inlinestatic | 
 
calculate y coordinates for the given range of x coordinates. 
The polynomial function is defined by the specified coefficients. T1 = type of x coordinates T2 = type of y coordinates T3 = type of coefficients (and for internal calculations)
- Parameters
- 
  
    | xs | first x coordinate for computation |  | xe | last x coordinate for computation |  | y | array to store the resulting y coordinates (n entries !) |  | n | number of entries in array (= points) |  | o | order of polynomial function |  | c | array of coefficients computed by the above method (o+1 entries !) |  
 
- Returns
- true if successful, false otherwise 
References convertValue().
 
 
template<class T1, class T2, class T3 = double> 
  
  | 
        
          | static int DiCurveFitting< T1, T2, T3 >::solve | ( | T3 * | a, |  
          |  |  | T3 * | b, |  
          |  |  | const unsigned int | n ) |  | inlinestaticprivate | 
 
solve the equation given by the two matrixes. 
T3 = type of coefficients (and for internal calculations)
- Parameters
- 
  
    | a | first matrix (array of values) |  | b | second matrix (array of values) |  | n | number of entries in array |  
 
- Returns
- true if successful, false otherwise 
Referenced by calculateCoefficients().