收益率曲线的构建和使用
原能力
构建并使用规定的收益率曲线,明确插值、外推和校准条件。(合同附件 R7 11.4)
首选项目
QuantLib(Modified BSD,上游许可正文)。 QuantLib
匹配范围
PiecewiseYieldCurve 和 RatesCurveCalibrator。
源码
QuantLib · class PiecewiseYieldCurve
ql/termstructures/yield/piecewiseyieldcurve.hpp · 64–77 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
class PiecewiseYieldCurve
: public Traits::template curve<Interpolator>::type,
public LazyObject,
public MultiCurveBootstrapProvider,
public CurveJacobianNodeProvider {
private:
typedef typename Traits::template curve<Interpolator>::type base_curve;
typedef PiecewiseYieldCurve<Traits,Interpolator,Bootstrap> this_curve;
public:
typedef Traits traits_type;
typedef Interpolator interpolator_type;
typedef Bootstrap<this_curve> bootstrap_type;
//! \name Constructors
- Copyright (C) 2005, 2006, 2007, 2008 StatPro Italia srl
- Copyright (C) 2007, 2008, 2009 Ferdinando Ametrano
- Copyright (C) 2007 Chris Kenyon
- Copyright (C) 2026 Kyrylo Protsenko
实现与验收要点
市场工具、曲线约定、插值、外推与失败证据。