24#ifndef quantlib_vasicek_hpp
25#define quantlib_vasicek_hpp
50 Time bondMaturity)
const override;
52 ext::shared_ptr<ShortRateDynamics>
dynamics()
const override;
98 inline ext::shared_ptr<OneFactorModel::ShortRateDynamics>
100 return ext::shared_ptr<ShortRateDynamics>(
Single-factor affine base class.
Base class describing the short-rate dynamics.
Ornstein-Uhlenbeck process class.
Base class for model arguments.
1-dimensional stochastic process
Short-rate dynamics in the Vasicek model.
Real shortRate(Time, Real x) const override
Compute short rate from state variable.
Dynamics(Real a, Real b, Real sigma, Real r0)
Real variable(Time, Rate r) const override
Compute state variable from short rate.
Real B(Time t, Time T) const override
Real discountBondOption(Option::Type type, Real strike, Time maturity, Time bondMaturity) const override
ext::shared_ptr< ShortRateDynamics > dynamics() const override
returns the short-rate dynamics
Real A(Time t, Time T) const override
Real Time
continuous quantity with 1-year units
Abstract one-factor interest rate model class.
Ornstein-Uhlenbeck process.
ext::shared_ptr< YieldTermStructure > r