#include <Cheb.h>
Inherits Cheb< xType, yType >.
Inheritance diagram for Interp:

Public Member Functions | |
| Interp (const Cheb< xType, yType > &ch) | |
| Interp (const Interp< xType, yType > &ch) | |
| Interp (const yType *arCn, xType x1, xType x2, int nCount) | |
| Interp (yType(&rFn)(xType), xType x1, xType x2, int nCount) | |
| Interp (yType(&rFn)(xType), xType x1, xType x2, xType dEps) | |
| ~Interp (void) | |
To develop an interpolation polynomial, a continuous single-valued function, over a specific domain and range, is passed to this object's constructor. In initialization, the user-supplied function is evaluated to determine interpolation coefficients of Chebyshev polynomials. These polynomials coefficients are stored, and approximate the user-supplied function. When this object is evaluated after instantiation, an approximation of a user-supplied function is made with no access to the user-supplied function.
The declaration typename <xType> specifies the form of independent variables used in interpolation calculations. The declaration typename <yType> specifies the form of solution variables used in interpolation calculations. In general, the <yType> variables should be the equal or superset of the <xType> variables.
| Interp | ( | yType(&)(xType) | rFn, | |
| xType | x1, | |||
| xType | x2, | |||
| xType | dEps | |||
| ) |
Constructor initializes a Chebyshev polynomial interpolation object from the specified function rFn within the specified interval x1 to x2 and at the specified tolerance dEps.
| rFn | a reference to an evaluation function to be interpolated | |
| x1 | interpolation lower bound (x units) | |
| x2 | interpolation upper bound (x units) | |
| dEps | required absolute error of interpolation (y units) |
yType fn(xType x); | Interp | ( | yType(&)(xType) | rFn, | |
| xType | x1, | |||
| xType | x2, | |||
| int | nCount | |||
| ) |
Constructor initializes a Chebyshev polynomial interpolation object from the specified function rFn within the specified interval x1 to x2 with the specified coefficient count nCount.
| rFn | a reference to an evaluation function to be interpolated | |
| x1 | interpolation lower bound (x units) | |
| x2 | interpolation upper bound (x units) | |
| nCount | coefficient count of interpolation polynomial |
yType fn(xType x); | Interp | ( | const yType * | arCn, | |
| xType | x1, | |||
| xType | x2, | |||
| int | nCount | |||
| ) |
Constructor initializes a Chebyshev polynomial interpolation object from the specified coefficient array arCn within the specified interval x1 to x2.
| arCn | a pointer to nCount Chebyshev polynomial coefficients (y units) | |
| x1 | interpolation lower bound (x units) | |
| x2 | interpolation upper bound (x units) | |
| nCount | coefficient count of the interpolation polynomial |
Copy constructor initializes a function interpolation object from the specified existing interpolation object.
| ch | a reference to a function interpolation object |
Copy constructor initializes a function interpolation object from the specified existing interpolation object.
| ch | a reference to a function interpolation object |
| ~Interp | ( | void | ) |
Destructor frees allocated memory.
1.4.7