25#ifndef quantlib_cox_ingersoll_ross_hpp
26#define quantlib_cox_ingersoll_ross_hpp
50 bool withFellerConstraint =
true);
55 Time bondMaturity)
const override;
57 ext::shared_ptr<ShortRateDynamics>
dynamics()
const override;
59 ext::shared_ptr<Lattice>
tree(
const TimeGrid& grid)
const override;
73 class VolatilityConstraint;
Dynamics of the short-rate under the Cox-Ingersoll-Ross model
Real shortRate(Time, Real y) const override
Compute short rate from state variable.
Real variable(Time, Rate r) const override
Compute state variable from short rate.
Dynamics(Real theta, Real k, Real sigma, Real x0)
Cox-Ingersoll-Ross model class.
Real B(Time t, Time T) const override
Real discountBondOption(Option::Type type, Real strike, Time maturity, Time bondMaturity) const override
ext::shared_ptr< Lattice > tree(const TimeGrid &grid) const override
Return by default a trinomial recombining tree.
ext::shared_ptr< ShortRateDynamics > dynamics() const override
returns the short-rate dynamics
Real A(Time t, Time T) const override
CoxIngersollRoss process class.
Single-factor affine base class.
Base class describing the short-rate dynamics.
Base class for model arguments.
1-dimensional stochastic process
CoxIngersollRoss process.
Real Time
continuous quantity with 1-year units
Abstract one-factor interest rate model class.
ext::shared_ptr< YieldTermStructure > r