24#ifndef quantext_irlgm1f_stateprocess_hpp
25#define quantext_irlgm1f_stateprocess_hpp
27#include <ql/stochasticprocess.hpp>
38 IrLgm1fStateProcess(
const QuantLib::ext::shared_ptr<IrLgm1fParametrization>& parametrization);
41 Real
x0()
const override;
42 Real
drift(Time t, Real x)
const override;
43 Real
diffusion(Time t, Real x)
const override;
46 Real
variance(Time t0, Real
x0, Time dt)
const override;
52 const QuantLib::ext::shared_ptr<IrLgm1fParametrization>
p_;
71 Real tmp =
p_->alpha(t);
90 Real tmp =
p_->zeta(t0 + dt) -
p_->zeta(t0);
std::vector< Real > cache_v_
Real diffusion(Time t, Real x) const override
Real stdDeviation(Time t0, Real x0, Time dt) const override
Real drift(Time t, Real x) const override
const QuantLib::ext::shared_ptr< IrLgm1fParametrization > p_
Real expectation(Time t0, Real x0, Time dt) const override
void resetCache(const Size timeSteps) const
Real variance(Time t0, Real x0, Time dt) const override
std::vector< Real > cache_d_
Interest Rate Linear Gaussian Markov 1 factor parametrization.