QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Distribution Walk. More...
#include <fireflyalgorithm.hpp>
Public Member Functions | |
DistributionRandomWalk (Distribution dist, Real delta=0.9, unsigned long seed=SeedGenerator::instance().get()) | |
Public Member Functions inherited from FireflyAlgorithm::RandomWalk | |
virtual | ~RandomWalk ()=default |
void | walk () |
perform random walk More... | |
Protected Member Functions | |
void | walkImpl (Array &xRW) override |
void | init (FireflyAlgorithm *fa) override |
virtual void | walkImpl (Array &xRW)=0 |
virtual void | init (FireflyAlgorithm *fa) |
Protected Attributes | |
IsotropicRandomWalk< Distribution, std::mt19937 > | walkRandom_ |
Real | delta_ |
Protected Attributes inherited from FireflyAlgorithm::RandomWalk | |
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_ |
Distribution Walk.
Definition at line 207 of file fireflyalgorithm.hpp.
|
explicit |
Definition at line 209 of file fireflyalgorithm.hpp.
|
overrideprotectedvirtual |
Implements FireflyAlgorithm::RandomWalk.
Definition at line 215 of file fireflyalgorithm.hpp.
|
overrideprotectedvirtual |
Reimplemented from FireflyAlgorithm::RandomWalk.
Definition at line 219 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 223 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 224 of file fireflyalgorithm.hpp.