interpolator
financepy.market.curves.interpolator
Types
InterpTypes
No description available.
Members
FLAT_FWD_RATES = 1LINEAR_DISCOUNT = 2LINEAR_ZERO_RATES = 3LINEAR_ONFWD_RATES = 4FINCUBIC_ZERO_RATES = 5NATCUBIC_LOG_DISCOUNT = 6NATCUBIC_ZERO_RATES = 7PCHIP_ZERO_RATES = 8PCHIP_LOG_DISCOUNT = 9TENSION_ZERO_RATES = 10MONOTONE_CONVEX = 11Class
Interpolator
Interpolator(
interpolator_type: 'InterpTypes',
**kwargs: 'dict',
) -> 'None'
Discount-factor interpolator.
The class separates fitting from evaluation:
* ``fit`` validates and stores the market knots, and builds any expensive
spline representation once.
* ``interpolate`` performs the cheapest possible evaluation path for the
selected interpolation type.
Methods
fit
fit(
self,
times: 'np.ndarray',
dfs: 'np.ndarray',
) -> 'None'
No description available.
interpolate
interpolate(
self,
t: 'Union[float, np.ndarray]',
)
No description available.
suitable_for_bootstrap
suitable_for_bootstrap(
cls,
interp_type: 'InterpTypes',
) -> 'bool'
No description available.
Functions
interpolate
interpolate(
t: 'Union[float, np.ndarray]',
times: 'np.ndarray',
dfs: 'np.ndarray',
method: 'int',
)
Fast stand-alone discount-factor interpolation.
This compatibility wrapper supports the original three Numba-backed methods:
flat forwards, linear forwards and linear zero rates.
Generated automatically from the FinancePy source code.
Do not edit this file manually.