20#include <ql/experimental/processes/extendedornsteinuhlenbeckprocess.hpp>
21#include <ql/experimental/processes/extouwithjumpsprocess.hpp>
22#include <ql/experimental/processes/klugeextouprocess.hpp>
23#include <ql/termstructures/yieldtermstructure.hpp>
30 ext::shared_ptr<ExtOUWithJumpsProcess> klugeProcess,
31 ext::shared_ptr<ExtendedOrnsteinUhlenbeckProcess> ouProcess)
32 : rho_(rho), sqrtMRho_(
std::sqrt(1 - rho * rho)), klugeProcess_(
std::move(klugeProcess)),
33 ouProcess_(
std::move(ouProcess)) {
35 QL_REQUIRE(
ouProcess_,
"null Ornstein-Uhlenbeck process");
89 ext::shared_ptr<ExtOUWithJumpsProcess>
93 ext::shared_ptr<ExtendedOrnsteinUhlenbeckProcess>
1-D array used in linear algebra.
const_iterator end() const
const_iterator begin() const
const ext::shared_ptr< ExtendedOrnsteinUhlenbeckProcess > ouProcess_
Array drift(Time t, const Array &x) const override
returns the drift part of the equation, i.e.,
Size size() const override
returns the number of dimensions of the stochastic process
Array evolve(Time t0, const Array &x0, Time dt, const Array &dw) const override
KlugeExtOUProcess(Real rho, ext::shared_ptr< ExtOUWithJumpsProcess > kluge, ext::shared_ptr< ExtendedOrnsteinUhlenbeckProcess > extOU)
Matrix diffusion(Time t, const Array &x) const override
returns the diffusion part of the equation, i.e.
Size factors() const override
returns the number of independent factors of the process
Array initialValues() const override
returns the initial values of the state variables
const ext::shared_ptr< ExtOUWithJumpsProcess > klugeProcess_
ext::shared_ptr< ExtOUWithJumpsProcess > getKlugeProcess() const
ext::shared_ptr< ExtendedOrnsteinUhlenbeckProcess > getExtOUProcess() const
Matrix used in linear algebra.
Real Time
continuous quantity with 1-year units
Real Volatility
volatility
std::size_t Size
size of a container