Cubic interpolation and flat extrapolation factory and traits.
More...
#include <qle/math/flatextrapolation.hpp>
|
| CubicFlat (QuantLib::CubicInterpolation::DerivativeApprox da=QuantLib::CubicInterpolation::Kruger, bool monotonic=false, QuantLib::CubicInterpolation::BoundaryCondition leftCondition=QuantLib::CubicInterpolation::SecondDerivative, QuantLib::Real leftConditionValue=0.0, QuantLib::CubicInterpolation::BoundaryCondition rightCondition=QuantLib::CubicInterpolation::SecondDerivative, QuantLib::Real rightConditionValue=0.0) |
|
template<class I1 , class I2 > |
Interpolation | interpolate (const I1 &xBegin, const I1 &xEnd, const I2 &yBegin) const |
|
Cubic interpolation and flat extrapolation factory and traits.
Definition at line 127 of file flatextrapolation.hpp.
◆ CubicFlat()
CubicFlat |
( |
QuantLib::CubicInterpolation::DerivativeApprox |
da = QuantLib::CubicInterpolation::Kruger , |
|
|
bool |
monotonic = false , |
|
|
QuantLib::CubicInterpolation::BoundaryCondition |
leftCondition = QuantLib::CubicInterpolation::SecondDerivative , |
|
|
QuantLib::Real |
leftConditionValue = 0.0 , |
|
|
QuantLib::CubicInterpolation::BoundaryCondition |
rightCondition = QuantLib::CubicInterpolation::SecondDerivative , |
|
|
QuantLib::Real |
rightConditionValue = 0.0 |
|
) |
| |
Definition at line 129 of file flatextrapolation.hpp.
QuantLib::CubicInterpolation::DerivativeApprox da_
QuantLib::Real rightValue_
QuantLib::Real leftValue_
QuantLib::CubicInterpolation::BoundaryCondition leftType_
QuantLib::CubicInterpolation::BoundaryCondition rightType_
◆ interpolate()
Interpolation interpolate |
( |
const I1 & |
xBegin, |
|
|
const I1 & |
xEnd, |
|
|
const I2 & |
yBegin |
|
) |
| const |
Definition at line 139 of file flatextrapolation.hpp.
139 {
140 return FlatExtrapolation(QuantLib::ext::make_shared<CubicInterpolation>(
142 }
◆ global
◆ requiredPoints
const Size requiredPoints = 2 |
|
static |
◆ da_
QuantLib::CubicInterpolation::DerivativeApprox da_ |
|
private |
◆ monotonic_
◆ leftType_
QuantLib::CubicInterpolation::BoundaryCondition leftType_ |
|
private |
◆ rightType_
QuantLib::CubicInterpolation::BoundaryCondition rightType_ |
|
private |
◆ leftValue_
QuantLib::Real leftValue_ |
|
private |
◆ rightValue_
QuantLib::Real rightValue_ |
|
private |