Interface class for numerical approximation.
More...
#include <cfl/Approx.hpp>
This is the abstract class for numerical approximation. Its implementations are used to construct concrete class Approx.
- See also
- Approx and NApprox
virtual cfl::IApprox::~IApprox |
( |
| ) |
|
|
inlinevirtual |
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.
virtual IApprox* cfl::IApprox::newApprox |
( |
double |
dLeft, |
|
|
double |
dRight |
|
) |
| const |
|
pure virtual |
Constructs approximation scheme on the interval [dLeft, dRight ].
- Parameters
-
dLeft | The left point of the interval. |
dRight | The right point of the interval. |
- Returns
- A dynamically allocated implementation of IApprox.
The documentation for this class was generated from the following file: