|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
#include <chebyshevinterpolation.hpp>
Inheritance diagram for ChebyshevInterpolation:
Collaboration diagram for ChebyshevInterpolation:Public Types | |
| enum | PointsType { FirstKind , SecondKind } |
Public Member Functions | |
| ChebyshevInterpolation (const Array &y, PointsType pointsType=SecondKind) | |
| ChebyshevInterpolation (Size n, const std::function< Real(Real)> &f, PointsType pointsType=SecondKind) | |
| ~ChebyshevInterpolation () override=default | |
| ChebyshevInterpolation (const ChebyshevInterpolation &)=delete | |
| ChebyshevInterpolation (ChebyshevInterpolation &&)=delete | |
| ChebyshevInterpolation & | operator= (const ChebyshevInterpolation &)=delete |
| ChebyshevInterpolation & | operator= (ChebyshevInterpolation &&)=delete |
| void | updateY (const Array &y) |
| Array | nodes () const |
Public Member Functions inherited from Interpolation | |
| Interpolation ()=default | |
| ~Interpolation () override=default | |
| bool | empty () const |
| Real | operator() (Real x, bool allowExtrapolation=false) const |
| Real | primitive (Real x, bool allowExtrapolation=false) const |
| Real | derivative (Real x, bool allowExtrapolation=false) const |
| Real | secondDerivative (Real x, bool allowExtrapolation=false) const |
| Real | xMin () const |
| Real | xMax () const |
| bool | isInRange (Real x) const |
| void | update () |
Public Member Functions inherited from Extrapolator | |
| Extrapolator ()=default | |
| virtual | ~Extrapolator ()=default |
| void | enableExtrapolation (bool b=true) |
| enable extrapolation in subsequent calls More... | |
| void | disableExtrapolation (bool b=true) |
| disable extrapolation in subsequent calls More... | |
| bool | allowsExtrapolation () const |
| tells whether extrapolation is enabled More... | |
Static Public Member Functions | |
| static Array | nodes (Size n, PointsType pointsType) |
Private Attributes | |
| const Array | x_ |
| Array | y_ |
Additional Inherited Members | |
Protected Member Functions inherited from Interpolation | |
| void | checkRange (Real x, bool extrapolate) const |
Protected Attributes inherited from Interpolation | |
| ext::shared_ptr< Impl > | impl_ |
See S.A. Sarra: Chebyshev Interpolation: An Interactive Tour.
Definition at line 34 of file chebyshevinterpolation.hpp.
| enum PointsType |
| Enumerator | |
|---|---|
| FirstKind | |
| SecondKind | |
Definition at line 36 of file chebyshevinterpolation.hpp.
|
explicit |
Definition at line 33 of file chebyshevinterpolation.cpp.
| ChebyshevInterpolation | ( | Size | n, |
| const std::function< Real(Real)> & | f, | ||
| PointsType | pointsType = SecondKind |
||
| ) |
Definition at line 45 of file chebyshevinterpolation.cpp.
|
overridedefault |
|
explicitdelete |
|
explicitdelete |
|
delete |
|
delete |
| void updateY | ( | const Array & | y | ) |
| Array nodes | ( | ) | const |
Definition at line 54 of file chebyshevinterpolation.cpp.
|
static |
Definition at line 58 of file chebyshevinterpolation.cpp.
|
private |
Definition at line 56 of file chebyshevinterpolation.hpp.
|
private |
Definition at line 57 of file chebyshevinterpolation.hpp.