CFL
Functions
cfl::NApprox Namespace Reference

Implementations of one-dimensional approximation methods. More...

Functions

Approx chebyshev (const Function &rSize)
 
Approx toApprox (const Function &rSize, const Interp &rInterp)
 

Detailed Description

This namespace contains implementations of approximation schemes for one-dimensional functions.

See also
Approx and IApprox

Function Documentation

Approx cfl::NApprox::chebyshev ( const Function rSize)

Constructs approximation scheme based on Chebyshev polynomials.

Parameters
rSizeThe function defines the number of nodes of the approximation scheme depending on the width of the interval.
Returns
The class Approx that implements Chebyshev approximation.
Approx cfl::NApprox::toApprox ( const Function rSize,
const Interp rInterp 
)

Adapts interpolation to approximation. Hence, this function permits to use interpolation method for numerical approximation. The nodes of approximation are equally spaced.

Parameters
rSizeThe function defines the number of nodes of the approximation scheme depending on the width of the interval.
rInterpInterpolation scheme.
Returns
The class Approx that is based on interpolation method given by rInterp.