QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
FireflyAlgorithm::RandomWalk Class Referenceabstract

Base Random Walk class. More...

#include <ql/experimental/math/fireflyalgorithm.hpp>

+ Inheritance diagram for FireflyAlgorithm::RandomWalk:
+ Collaboration diagram for FireflyAlgorithm::RandomWalk:

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_
 
ArraylX_
 
ArrayuX_
 

Friends

class FireflyAlgorithm
 

Detailed Description

Base Random Walk class.

Derived classes need to implement only walkImpl

Definition at line 173 of file fireflyalgorithm.hpp.

Constructor & Destructor Documentation

◆ ~RandomWalk()

virtual ~RandomWalk ( )
virtualdefault

Member Function Documentation

◆ walk()

void walk ( )

perform random walk

Definition at line 178 of file fireflyalgorithm.hpp.

+ Here is the call graph for this function:

◆ walkImpl()

virtual void walkImpl ( Array xRW)
protectedpure virtual

◆ init()

virtual void init ( FireflyAlgorithm fa)
protectedvirtual

Friends And Related Function Documentation

◆ FireflyAlgorithm

friend class FireflyAlgorithm
friend

Definition at line 174 of file fireflyalgorithm.hpp.

Member Data Documentation

◆ Mfa_

Size Mfa_
protected

Definition at line 184 of file fireflyalgorithm.hpp.

◆ N_

Size N_
protected

Definition at line 184 of file fireflyalgorithm.hpp.

◆ x_

const std::vector<Array>* x_
protected

Definition at line 185 of file fireflyalgorithm.hpp.

◆ values_

const std::vector<std::pair<Real, Size> >* values_
protected

Definition at line 186 of file fireflyalgorithm.hpp.

◆ xRW_

std::vector<Array>* xRW_
protected

Definition at line 187 of file fireflyalgorithm.hpp.

◆ lX_

Array* lX_
protected

Definition at line 188 of file fireflyalgorithm.hpp.

◆ uX_

Array * uX_
protected

Definition at line 188 of file fireflyalgorithm.hpp.