|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
Base intensity class. More...
#include <fireflyalgorithm.hpp>
Inheritance diagram for FireflyAlgorithm::Intensity:
Collaboration diagram for FireflyAlgorithm::Intensity:Public Member Functions | |
| virtual | ~Intensity ()=default |
| void | findBrightest () |
| find brightest firefly for each firefly More... | |
Protected Member Functions | |
| virtual Real | intensityImpl (Real valueX, Real valueY, Real distance)=0 |
| Real | distance (const Array &x, const Array &y) const |
Protected Attributes | |
| Size | Mfa_ |
| Size | N_ |
| const std::vector< Array > * | x_ |
| const std::vector< std::pair< Real, Size > > * | values_ |
| std::vector< Array > * | xI_ |
Private Member Functions | |
| void | init (FireflyAlgorithm *fa) |
Friends | |
| class | FireflyAlgorithm |
Base intensity class.
Derived classes need to implement only intensityImpl
Definition at line 110 of file fireflyalgorithm.hpp.
|
virtualdefault |
| void findBrightest | ( | ) |
find brightest firefly for each firefly
Definition at line 221 of file fireflyalgorithm.cpp.
Here is the call graph for this function:Implemented in ExponentialIntensity, and InverseLawSquareIntensity.
Here is the caller graph for this function:
|
private |
Definition at line 133 of file fireflyalgorithm.hpp.
|
friend |
Definition at line 111 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 117 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 117 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 118 of file fireflyalgorithm.hpp.
Definition at line 119 of file fireflyalgorithm.hpp.
|
protected |
Definition at line 120 of file fireflyalgorithm.hpp.