CFL
Public Member Functions | List of all members
cfl::IApprox Class Referenceabstract

Interface class for numerical approximation. More...

#include <cfl/Approx.hpp>

Public Member Functions

virtual ~IApprox ()
 
virtual Function approximate (const std::valarray< double > &rValues) const =0
 
virtual const std::valarray< double > & arg () const =0
 
virtual IApproxnewApprox (double dLeft, double dRight) const =0
 

Detailed Description

This is the abstract class for numerical approximation. Its implementations are used to construct concrete class Approx.

See also
Approx and NApprox

Constructor & Destructor Documentation

virtual cfl::IApprox::~IApprox ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

virtual Function cfl::IApprox::approximate ( const std::valarray< double > &  rValues) const
pure virtual

Recovers a one-dimensional function by using its values at the nodes of the approximation scheme.

Parameters
rValuesValues of the function at the nodes of the approximation scheme.
Returns
The result of numerical approximation of the function.
virtual const std::valarray<double>& cfl::IApprox::arg ( ) const
pure virtual

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
dLeftThe left point of the interval.
dRightThe right point of the interval.
Returns
A dynamically allocated implementation of IApprox.

The documentation for this class was generated from the following file: