QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Generates a multipath from a random number generator. More...
#include <multipathgenerator.hpp>
Public Types | |
typedef Sample< MultiPath > | sample_type |
Public Member Functions | |
MultiPathGenerator (const ext::shared_ptr< StochasticProcess > &, const TimeGrid &, GSG generator, bool brownianBridge=false) | |
const sample_type & | next () const |
const sample_type & | antithetic () const |
Private Member Functions | |
const sample_type & | next (bool antithetic) const |
Private Attributes | |
bool | brownianBridge_ |
ext::shared_ptr< StochasticProcess > | process_ |
GSG | generator_ |
sample_type | next_ |
Generates a multipath from a random number generator.
RSG is a sample generator which returns a random sequence. It must have the minimal interface:
Definition at line 51 of file multipathgenerator.hpp.
typedef Sample<MultiPath> sample_type |
Definition at line 53 of file multipathgenerator.hpp.
MultiPathGenerator | ( | const ext::shared_ptr< StochasticProcess > & | process, |
const TimeGrid & | times, | ||
GSG | generator, | ||
bool | brownianBridge = false |
||
) |
const MultiPathGenerator< GSG >::sample_type & next |
Definition at line 92 of file multipathgenerator.hpp.
const MultiPathGenerator< GSG >::sample_type & antithetic |
Definition at line 98 of file multipathgenerator.hpp.
|
private |
|
private |
Definition at line 62 of file multipathgenerator.hpp.
|
private |
Definition at line 63 of file multipathgenerator.hpp.
|
private |
Definition at line 64 of file multipathgenerator.hpp.
|
mutableprivate |
Definition at line 65 of file multipathgenerator.hpp.