Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
crcirppstateprocess.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2020 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file crcirppstateprocess.hpp
20 \brief CIR++ model state process
21 \ingroup processes
22*/
23
24#ifndef quantext_crcirpp_stateprocess_hpp
25#define quantext_crcirpp_stateprocess_hpp
26
27#include <ql/stochasticprocess.hpp>
28
29namespace QuantExt {
30using namespace QuantLib;
31
32class CrCirpp;
33
34//! CIR++ Model State Process
35/*! \ingroup processes
36 */
38public:
40
42 CrCirpp* const model,
44
45 /*! StochasticProcess interface */
46 Size size() const override;
47 Array initialValues() const override;
48 Array drift(Time t, const Array& x) const override;
49 Matrix diffusion(Time t, const Array& x) const override;
50 Array evolve(Time t0, const Array& x0, Time dt, const Array& dw) const override;
51
52 // inspector
53 const CrCirpp* model() const { return model_; }
55
56protected:
59};
60} // namespace QuantExt
61
62#endif
Cox-Ingersoll-Ross ++ credit model class.
Definition: crcirpp.hpp:48
CIR++ Model State Process.
Array drift(Time t, const Array &x) const override
Array evolve(Time t0, const Array &x0, Time dt, const Array &dw) const override
Matrix diffusion(Time t, const Array &x) const override
Array initialValues() const override
const CrCirppStateProcess::Discretization discretization_
const CrCirppStateProcess::Discretization discretization()