Overview
functions to construct and use Interpolation and Interpolation2D objects.
Function List
qlAbcdInterpolation ()
qlAbcdInterpolationA ()
qlAbcdInterpolationB ()
qlAbcdInterpolationC ()
qlAbcdInterpolationD ()
qlAbcdInterpolationEndCriteria ()
qlAbcdInterpolationMaxError ()
qlAbcdInterpolationRmsError ()
qlCubicInterpolation ()
qlCubicInterpolationACoefficients ()
qlCubicInterpolationBCoefficients ()
qlCubicInterpolationCCoefficients ()
qlCubicInterpolationMonotonicityAdjustments ()
qlCubicInterpolationPrimitiveConstants ()
qlExtrapolatorEnableExtrapolation ()
qlInterpolation ()
qlInterpolation2D ()
qlInterpolation2DInterpolate ()
qlInterpolation2DIsInRange ()
qlInterpolation2DXmax ()
qlInterpolation2DXmin ()
qlInterpolation2DXvalues ()
qlInterpolation2DYmax ()
qlInterpolation2DYmin ()
qlInterpolation2DYvalues ()
qlInterpolation2DzData ()
qlInterpolationDerivative ()
qlInterpolationInterpolate ()
qlInterpolationIsInRange ()
qlInterpolationPrimitive ()
qlInterpolationSecondDerivative ()
qlInterpolationXmax ()
qlInterpolationXmin ()
qlMixedLinearCubicInterpolation ()
qlSABRInterpolation ()
qlSABRInterpolationAlpha ()
qlSABRInterpolationBeta ()
qlSABRInterpolationEndCriteria ()
qlSABRInterpolationExpiry ()
qlSABRInterpolationForward ()
qlSABRInterpolationMaxError ()
qlSABRInterpolationNu ()
qlSABRInterpolationRho ()
qlSABRInterpolationRmsError ()
qlSABRInterpolationWeights ()
Function Documentation
- Description:
Construct an object of class AbcdInterpolation and return its id
- Supported Platforms:
Excel, C++
- Parameters
-
ObjectId id of object to be created XArray x array. YArray y array. A The a in { y = (a + b*x) e^(-c*x) + d }. It can be a fixed value or just a guess. Default value = QuantLib::Null<QuantLib::Real>(). B The b in { y = (a + b*x) e^(-c*x) + d }. It can be a fixed value or just a guess. Default value = QuantLib::Null<QuantLib::Real>(). C The c in { y = (a + b*x) e^(-c*x) + d }. It can be a fixed value or just a guess. Default value = QuantLib::Null<QuantLib::Real>(). D The d in { y = (a + b*x) e^(-c*x) + d }. It can be a fixed value or just a guess. Default value = QuantLib::Null<QuantLib::Real>(). AIsFixed TRUE if the A value provided is to be kept fixed, FALSE if it is just a guess. Default value = false. BIsFixed TRUE if the B value provided is to be kept fixed, FALSE if it is just a guess. Default value = false. CIsFixed TRUE if the C value provided is to be kept fixed, FALSE if it is just a guess. Default value = false. DIsFixed TRUE if the D value provided is to be kept fixed, FALSE if it is just a guess. Default value = false. VegaWeighted TRUE if the interpolation is weighted using options Vega. Default value = true. EndCriteria EndCriteria object ID. Default value = . OptimizationMeth OptimizationMethod object ID. Default value = . Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Returns the a in the { y = (a + b*x) e^(-c*x) + d } fit for the given AbcdInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::AbcdInterpolation object Trigger dependency tracking trigger
- Description:
Returns the b in the { y = (a + b*x) e^(-c*x) + d } fit for the given AbcdInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::AbcdInterpolation object Trigger dependency tracking trigger
- Description:
Returns the c in the { y = (a + b*x) e^(-c*x) + d } fit for the given AbcdInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::AbcdInterpolation object Trigger dependency tracking trigger
- Description:
Returns the d in the { y = (a + b*x) e^(-c*x) + d } fit for the given AbcdInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::AbcdInterpolation object Trigger dependency tracking trigger
qlAbcdInterpolationEndCriteria
- Description:
Returns the optimization end criteria of the fit for the given AbcdInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::AbcdInterpolation object Trigger dependency tracking trigger
- Description:
Returns the max error of the fit for the given AbcdInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::AbcdInterpolation object Trigger dependency tracking trigger
- Description:
Returns the error of the fit for the given AbcdInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::AbcdInterpolation object Trigger dependency tracking trigger
- Description:
Construct an object of class CubicInterpolation and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created XArray x array. YArray y array. DerApprox Derivative Approximation (). Default value = Kruger. Monotonic monotonicity constraint flag. Default value = true. LeftConditionType left boundary condition (NotAKnot, FirstDerivative, SecondDerivative, Periodic, Lagrange). Default value = SecondDerivative. LeftConditionValue left condition value. Default value = 0.0. RightConditionType right boundary condition (NotAKnot, FirstDerivative, SecondDerivative, Periodic, Lagrange). Default value = SecondDerivative. RightConditionValue right condition value. Default value = 0.0. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
qlCubicInterpolationACoefficients
- Description:
Returns the constant terms in the primitive of the cubic interpolants for the given CubicSplineInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::CubicInterpolation object Trigger dependency tracking trigger
qlCubicInterpolationBCoefficients
- Description:
Returns the constant terms in the primitive of the cubic interpolants for the given CubicSplineInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::CubicInterpolation object Trigger dependency tracking trigger
qlCubicInterpolationCCoefficients
- Description:
Returns the constant terms in the primitive of the cubic interpolants for the given CubicSplineInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::CubicInterpolation object Trigger dependency tracking trigger
qlCubicInterpolationMonotonicityAdjustments
- Description:
Returns a vector of bool (one per cubic) indicating if there has been a monotonicity adjustment.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::CubicInterpolation object Trigger dependency tracking trigger
qlCubicInterpolationPrimitiveConstants
- Description:
Returns the constant terms in the primitive of the cubic interpolants for the given CubicSplineInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::CubicInterpolation object Trigger dependency tracking trigger
qlExtrapolatorEnableExtrapolation
- Description:
Sets the enable extrapolation flag to the given Extrapolator object.
- Supported Platforms:
Excel, C++
- Parameters
-
ObjectId id of existing QuantLibAddin::Extrapolator object ExtrapolationFlag global extrapolation flag. Default value = true. Trigger dependency tracking trigger
- Description:
Construct an object of class GenericInterp and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created InterpolationType interpolation type (e.g BackwardFlat, ForwardFlat, MonotonicCubicNaturalSpline, etc.) Default value = MonotonicCubicNaturalSpline. XArray x array. YArray y array. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class Interpolation2D and return its id
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of object to be created InterpolationType 2D-interpolation type (e.g BiLinear, BiCubic). Default value = BiLinear. XArray x array. YArray y array. ZMatrix z-matrix values. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Returns interpolated values for the (x,y) input for the given Interpolation2D object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation2D object XValue x value(s). YValue y value. AllowExtrapolation allow extrapolation flag. Default value = false. Trigger dependency tracking trigger
- Description:
Returns TRUE if the (x,y) input value is in the allowed interpolation range for the given Interpolation2D object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation2D object XValues x values. YValue y value. Trigger dependency tracking trigger
- Description:
Returns the maximum value of the x array for the given Interpolation2D object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation2D object Trigger dependency tracking trigger
- Description:
Returns the minimum value of the x array for the given Interpolation2D object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation2D object Trigger dependency tracking trigger
- Description:
Returns the x array grid for the given Interpolation2D object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation2D object Trigger dependency tracking trigger
- Description:
Returns the maximum value of the y array for the given Interpolation2D object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation2D object Trigger dependency tracking trigger
- Description:
Returns the minimum value of the y array for the given Interpolation2D object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation2D object Trigger dependency tracking trigger
- Description:
Returns the y array grid for the given Interpolation2D object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation2D object Trigger dependency tracking trigger
- Description:
Returns the z data matrix grid for the given Interpolation2D object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation2D object Trigger dependency tracking trigger
- Description:
Returns the first derivative function values using the given Interpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::Interpolation object XValues x values. AllowExtrapolation allow extrapolation flag. Default value = false. Trigger dependency tracking trigger
- Description:
this is an example of long description. on multiple lines.
- Supported Platforms:
Excel, Calc
- Parameters
-
ObjectId id of existing QuantLibAddin::Interpolation object XValues x values. AllowExtrapolation allow extrapolation flag. Default value = false. Trigger dependency tracking trigger
- Description:
Returns TRUE if the input value is in the allowed interpolation range for the given Interpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation object XValues x values. Trigger dependency tracking trigger
- Description:
Returns the primitive function values using the given Interpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::Interpolation object XValues x values. AllowExtrapolation allow extrapolation flag. Default value = false. Trigger dependency tracking trigger
qlInterpolationSecondDerivative
- Description:
Returns the second derivative function values using the given Interpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::Interpolation object XValues x values. AllowExtrapolation allow extrapolation flag. Default value = false. Trigger dependency tracking trigger
- Description:
Returns the maximum value of the x array for the given Interpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation object Trigger dependency tracking trigger
- Description:
Returns the minimum value of the x array for the given Interpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::Interpolation object Trigger dependency tracking trigger
qlMixedLinearCubicInterpolation
- Description:
Construct an object of class MixedLinearCubicInterpolation and return its id
- Supported Platforms:
Excel, C++
- Parameters
-
ObjectId id of object to be created XArray x array. YArray y array. SwitchIndex zero based knot index at which interpolation switches from linear to cubic. MixedInterpolationBehavior ShareRanges to join two different interpolations over all the pillars, SplitRanges otherwise. Default value = ShareRanges. DerApprox Derivative Approximation (). Default value = Kruger. Monotonic monotonicity constraint flag. Default value = true. LeftConditionType left boundary condition (NotAKnot, FirstDerivative, SecondDerivative, Periodic, Lagrange). Default value = SecondDerivative. LeftConditionValue left condition value. Default value = 0.0. RightConditionType right boundary condition (NotAKnot, FirstDerivative, SecondDerivative, Periodic, Lagrange). Default value = SecondDerivative. RightConditionValue right condition value. Default value = 0.0. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class SABRInterpolation and return its id
- Supported Platforms:
Excel, C++
- Parameters
-
ObjectId id of object to be created XArray x array. YArray y array. Expiry expiry time in years. Forward at-the-money forward rate. Alpha alpha (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>(). Beta beta (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>(). Nu nu (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>(). Rho rho (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>(). AlphaIsFixed TRUE if the alpha value provided is to be kept fixed, FALSE if it is just a guess. Default value = false. BetaIsFixed TRUE if the beta value provided is to be kept fixed, FALSE if it is just a guess. Default value = false. NuIsFixed TRUE if the nu value provided is to be kept fixed, FALSE if it is just a guess. Default value = false. RhoIsFixed TRUE if the rho value provided is to be kept fixed, FALSE if it is just a guess. Default value = false. VegaWeighted TRUE if the interpolation is weighted using options Vega. Default value = true. EndCriteria EndCriteria object ID. Default value = . OptimizationMeth OptimizationMethod object ID. Default value = . Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Returns the alpha of the fit for the given SABRInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::SABRInterpolation object Trigger dependency tracking trigger
- Description:
Returns the alpha of the fit for the given SABRInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::SABRInterpolation object Trigger dependency tracking trigger
qlSABRInterpolationEndCriteria
- Description:
Returns the optimization end criteria of the fit for the given SABRInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::SABRInterpolation object Trigger dependency tracking trigger
- Description:
Returns the expiry time in years for the given SABRInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::SABRInterpolation object Trigger dependency tracking trigger
- Description:
Returns the forward for the given SABRInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::SABRInterpolation object Trigger dependency tracking trigger
- Description:
Returns the max error of the fit for the given SABRInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::SABRInterpolation object Trigger dependency tracking trigger
- Description:
Returns the nu of the fit for the given SABRInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::SABRInterpolation object Trigger dependency tracking trigger
- Description:
Returns the rho of the fit for the given SABRInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::SABRInterpolation object Trigger dependency tracking trigger
- Description:
Returns the error of the fit for the given SABRInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::SABRInterpolation object Trigger dependency tracking trigger
- Description:
Returns the weights of the fit for the given SABRInterpolation object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::SABRInterpolation object Trigger dependency tracking trigger