Standard concrete class for numerical approximation.
More...
#include <cfl/Approx.hpp>
This is the standard class for different approximation schemes. It is implemented by a dynamically allocated object derived from the interface class IApprox.
- See also
- IApprox and NApprox
cfl::Approx::Approx |
( |
IApprox * |
pNewP = 0 | ) |
|
|
explicit |
A constructor.
- Parameters
-
pNewP | A dynamically allocated implementation of IApprox. |
Recovers a one-dimensional function by using its values at the nodes of the approximation scheme.
- Parameters
-
rValues | Values of the function at the nodes of the approximation scheme. |
- Returns
- The result of numerical approximation of the function.
Returns the nodes of the approximation scheme, that is, the arguments where an approximated function should be evaluated. For example, in the case of Chebyshev approximation this function returns zeros of Chebyshev polynomials.
- Returns
- The nodes of the approximation scheme.
void cfl::Approx::assign |
( |
double |
dLeft, |
|
|
double |
dRight |
|
) |
| |
Constructs an approximation scheme on the interval [dLeft, dRight].
- Parameters
-
dLeft | The left point of the interval. |
dRight | The right point of the interval. |
The documentation for this class was generated from the following file: