QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
|
Base Random Walk class. More...
#include <ql/experimental/math/fireflyalgorithm.hpp>
Public Member Functions | |
virtual | ~RandomWalk ()=default |
void | walk () |
perform random walk More... | |
Protected Member Functions | |
virtual void | walkImpl (Array &xRW)=0 |
virtual void | init (FireflyAlgorithm *fa) |
Protected Attributes | |
Size | Mfa_ |
Size | N_ |
const std::vector< Array > * | x_ |
const std::vector< std::pair< Real, Size > > * | values_ |
std::vector< Array > * | xRW_ |
Array * | lX_ |
Array * | uX_ |
Friends | |
class | FireflyAlgorithm |
Base Random Walk class.
Derived classes need to implement only walkImpl
Definition at line 173 of file fireflyalgorithm.hpp.
|
virtualdefault |
void walk | ( | ) |
perform random walk
Definition at line 178 of file fireflyalgorithm.hpp.
|
protectedpure virtual |
Implemented in DistributionRandomWalk< Distribution >, DistributionRandomWalk< std::normal_distribution< QuantLib::Real > >, DistributionRandomWalk< LevyFlightDistribution >, and DecreasingGaussianWalk.
|
protectedvirtual |
Reimplemented in DistributionRandomWalk< Distribution >, DistributionRandomWalk< std::normal_distribution< QuantLib::Real > >, DistributionRandomWalk< LevyFlightDistribution >, and DecreasingGaussianWalk.
Definition at line 191 of file fireflyalgorithm.hpp.
|
friend |
Definition at line 174 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 184 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 184 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 185 of file fireflyalgorithm.hpp.
Definition at line 186 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 187 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 188 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 188 of file fireflyalgorithm.hpp.