24#ifndef quantext_com_schwartz_stateprocess_hpp
25#define quantext_com_schwartz_stateprocess_hpp
27#include <ql/stochasticprocess.hpp>
43 Real
x0()
const override {
return 0.0; }
44 Real
drift(Time t, Real x)
const override;
45 Real
diffusion(Time t, Real x)
const override;
56 const QuantLib::ext::shared_ptr<CommoditySchwartzParametrization>
p_;
60 const QuantLib::ext::shared_ptr<CommoditySchwartzParametrization>
p_;
Real drift(const StochasticProcess1D &p, Time t0, Real x0, Time dt) const override
const QuantLib::ext::shared_ptr< CommoditySchwartzParametrization > p_
Real diffusion(const StochasticProcess1D &p, Time t0, Real x0, Time dt) const override
ExactDiscretization(const QuantLib::ext::shared_ptr< CommoditySchwartzParametrization > &p)
Real variance(const StochasticProcess1D &p, Time t0, Real x0, Time dt) const override
COM Schwartz model one-factor state process.
const QuantLib::ext::shared_ptr< CommoditySchwartzParametrization > p_
Real diffusion(Time t, Real x) const override
Real drift(Time t, Real x) const override
Schwartz (1997) one-factor model of the commodity price termstructure.
Schwartz commodity model parametrization.