_FXDeltaVolSpline#
- class rateslib.fx_volatility._FXDeltaVolSpline(t)#
Bases:
objectA container for data relating to interpolating the nodes of a
FXDeltaVolSmileusing a cubic PPSpline.Attributes Summary
An instance of
PPSplineF64,PPSplineDualorPPSplineDual2The knot sequence of the PPSpline.
Methods Summary
csolve(nodes, ad)Construct a spline of appropriate AD order and solve the spline coefficients for the given
nodes.to_json()Serialize this object to JSON format.
Attributes Documentation
- spline#
An instance of
PPSplineF64,PPSplineDualorPPSplineDual2
- t#
The knot sequence of the PPSpline.
Methods Documentation
- csolve(nodes, ad)#
Construct a spline of appropriate AD order and solve the spline coefficients for the given
nodes.- Parameters:
nodes (_FXDeltaVolSmileNodes) – Required information for constructing a PPSpline.
ad (int) – The AD order of the constructed PPSPline.
- Return type:
None
- to_json()#
Serialize this object to JSON format.
The object can be deserialized using the
from_json()method.- Return type:
str