Static Public Member Functions | |
static int | calculateCoefficients (const T1 *x, const T2 *y, const unsigned int n, const unsigned int o, T3_ *c) |
calculate coefficients for resulting polynomial function. | |
static int | calculateValues (const T1 xs, const T1 xe, T2 *y, const unsigned int n, const unsigned int o, const T3_ *c) |
calculate y coordinates for the given range of x coordinates. | |
Static Private Member Functions | |
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. |
Definition at line 57 of file dicrvfit.h.
static int DiCurveFitting< T1, T2 >::calculateCoefficients | ( | const T1 * | x, | |
const T2 * | y, | |||
const unsigned int | n, | |||
const unsigned int | o, | |||
T3_ * | c | |||
) | [inline, static] |
calculate coefficients for resulting polynomial function.
T1 = type of x coordinates T2 = type of y coordinates T3_ = type of coefficients (and for internal calculations)
x | array with x coordinates of given points | |
y | array with y coordinates of given points | |
n | number of entries in array (= points) | |
o | order of polynomial function | |
c | array to store the resulting coefficients (o+1 entries !) |
Definition at line 75 of file dicrvfit.h.
References DiCurveFitting< T1, T2 >::solve().
static int DiCurveFitting< T1, T2 >::calculateValues | ( | const T1 | xs, | |
const T1 | xe, | |||
T2 * | y, | |||
const unsigned int | n, | |||
const unsigned int | o, | |||
const T3_ * | c | |||
) | [inline, static] |
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)
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 !) |
Definition at line 156 of file dicrvfit.h.
References DiCurveFitting< T1, T2 >::convertValue().
static void DiCurveFitting< T1, T2 >::convertValue | ( | const T3_ | input, | |
Uint8 & | output | |||
) | [inline, static, private] |
helper routine: convert to unsigned 8 bit value
input | input value to be converted | |
output | output value (range: 0..255) |
Definition at line 200 of file dicrvfit.h.
Referenced by DiCurveFitting< T1, T2 >::calculateValues().
static void DiCurveFitting< T1, T2 >::convertValue | ( | const T3_ | input, | |
Sint8 & | output | |||
) | [inline, static, private] |
helper routine: convert to signed 8 bit value
input | input value to be converted | |
output | output value (range: -128..127) |
Definition at line 212 of file dicrvfit.h.
static void DiCurveFitting< T1, T2 >::convertValue | ( | const T3_ | input, | |
Uint16 & | output | |||
) | [inline, static, private] |
helper routine: convert to unsigned 16 bit value
input | input value to be converted | |
output | output value (range: 0..65535) |
Definition at line 224 of file dicrvfit.h.
static void DiCurveFitting< T1, T2 >::convertValue | ( | const T3_ | input, | |
Sint16 & | output | |||
) | [inline, static, private] |
helper routine: convert to signed 16 bit value
input | input value to be converted | |
output | output value (range: -32768..32767) |
Definition at line 236 of file dicrvfit.h.
static void DiCurveFitting< T1, T2 >::convertValue | ( | const T3_ | input, | |
double & | output | |||
) | [inline, static, private] |
helper routine: convert to floating point value (double precision)
input | input value to be converted | |
output | output value (double) |
Definition at line 248 of file dicrvfit.h.
static int DiCurveFitting< T1, T2 >::solve | ( | T3_ * | a, | |
T3_ * | b, | |||
const unsigned int | n | |||
) | [inline, static, private] |
solve the equation given by the two matrixes.
T3_ = type of coefficients (and for internal calculations)
a | first matrix (array of values) | |
b | second matrix (array of values) | |
n | number of entries in array |
Definition at line 262 of file dicrvfit.h.
Referenced by DiCurveFitting< T1, T2 >::calculateCoefficients().