Class PieceWiseYieldCurve

Inheritance Relationships

Base Types

Class Documentation

class PieceWiseYieldCurve : public otyca::PieceWiseTermStructure, public otyca::YieldCurve

A piecewise implementation of a yield curve.

Combines the behavior of a yield curve and a piecewise term structure to model interest rates or discount factors in a flexible, segment-wise fashion.

Inherits from:

Public Functions

PieceWiseYieldCurve()

Default constructor.

Initializes an empty piecewise yield curve with no data points.

inline PieceWiseYieldCurve(double t, double v)

Constructs the curve with a single point.

Parameters:
  • t – Time to maturity of the initial point.

  • v – Rate or value associated with the time t.

virtual ~PieceWiseYieldCurve()

Destructor.