ell::MS_Uniform Class Reference
#include <MinimumSelector.hh>
Inheritance diagram for ell::MS_Uniform:

Detailed Description
Selects randomly a minimum from a given landscape topology using a uniform distribution, i.e. each minimum is selected with equal probability.
Definition at line 52 of file MinimumSelector.hh.
Public Member Functions | |
| MS_Uniform () | |
| virtual size_t | select (const LandscapeTopology *const lt, const bool minimaChanged=true) |
| virtual | ~MS_Uniform () |
Constructor & Destructor Documentation
| ell::MS_Uniform::MS_Uniform | ( | ) |
| ell::MS_Uniform::~MS_Uniform | ( | ) | [virtual] |
Member Function Documentation
| size_t ell::MS_Uniform::select | ( | const LandscapeTopology *const | lt, | |
| const bool | minimaChanged = true | |||
| ) | [virtual] |
Selects randomly a minimum from the landscape topology using a uniform distribution and returns the corresponding index.
- Parameters:
-
lt the landscape topology to select a minimum from minimaChanged whether or not the minima of lt have changed since the last call of this selector (e.g. sorted etc.).
- Returns:
- the index of the minimum selected or INVALID_INDEX if the topology holds no minima or none this selector would choose.
Implements ell::MinimumSelector.
Definition at line 36 of file MinimumSelector.cc.
The documentation for this class was generated from the following files:
- src/ell/MinimumSelector.hh
- src/ell/MinimumSelector.cc