28 : x0_(x0), speed_(
speed), level_(level), volatility_(vol) {
37 return x0_ * fraction * (exponent1 - exponent2) +
level_ * fraction * (1 - exponent1) * (1 - exponent1);
CoxIngersollRossProcess(Real speed, Volatility vol, Real x0=0.0, Real level=0.0)
Real variance(Time t0, Real x0, Time dt) const override
CoxIngersollRoss process.
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
Real Time
continuous quantity with 1-year units
Real Volatility
volatility