QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Mersenne-twister Brownian generator for market-model simulations. More...
#include <mtbrowniangenerator.hpp>
Public Member Functions | |
MTBrownianGenerator (Size factors, Size steps, unsigned long seed=0) | |
Real | nextStep (std::vector< Real > &) override |
Real | nextPath () override |
Size | numberOfFactors () const override |
Size | numberOfSteps () const override |
Public Member Functions inherited from BrownianGenerator | |
virtual | ~BrownianGenerator ()=default |
virtual Real | nextStep (std::vector< Real > &)=0 |
virtual Real | nextPath ()=0 |
virtual Size | numberOfFactors () const =0 |
virtual Size | numberOfSteps () const =0 |
Private Attributes | |
Size | factors_ |
Size | steps_ |
Size | lastStep_ = 0 |
RandomSequenceGenerator< MersenneTwisterUniformRng > | generator_ |
InverseCumulativeNormal | inverseCumulative_ |
Mersenne-twister Brownian generator for market-model simulations.
Incremental Brownian generator using a Mersenne-twister uniform generator and inverse-cumulative Gaussian method.
Definition at line 43 of file mtbrowniangenerator.hpp.
MTBrownianGenerator | ( | Size | factors, |
Size | steps, | ||
unsigned long | seed = 0 |
||
) |
Definition at line 25 of file mtbrowniangenerator.cpp.
Implements BrownianGenerator.
Definition at line 29 of file mtbrowniangenerator.cpp.
|
overridevirtual |
Implements BrownianGenerator.
Definition at line 45 of file mtbrowniangenerator.cpp.
|
overridevirtual |
Implements BrownianGenerator.
Definition at line 54 of file mtbrowniangenerator.cpp.
|
overridevirtual |
Implements BrownianGenerator.
Definition at line 56 of file mtbrowniangenerator.cpp.
|
private |
Definition at line 56 of file mtbrowniangenerator.hpp.
|
private |
Definition at line 56 of file mtbrowniangenerator.hpp.
|
private |
Definition at line 57 of file mtbrowniangenerator.hpp.
|
private |
Definition at line 58 of file mtbrowniangenerator.hpp.
|
private |
Definition at line 59 of file mtbrowniangenerator.hpp.