|
| IEvoParam (size_t domainLength) |
|
◆ GetNormalizedPositionWeight()
float grail::evolution::IEvoParam::GetNormalizedPositionWeight |
( |
| ) |
const |
Returns the normalized postion as [0.0, 1.0] floating point number.
◆ GetPositionIndex()
size_t grail::evolution::IEvoParam::GetPositionIndex |
( |
| ) |
const |
Returns the position of the parameter i.e. the index of the currently assigned element from the domain.
◆ Randomize()
void grail::evolution::IEvoParam::Randomize |
( |
std::mt19937_64 & |
rand_gen | ) |
|
Sets to a random possible value from a domain.
◆ SetNext()
IEvoParam const * grail::evolution::IEvoParam::SetNext |
( |
| ) |
|
Sets to the next possible value in the domain (wrapped, i.e. last.next -> first) and returns itself.
◆ SetNextClamped()
IEvoParam const * grail::evolution::IEvoParam::SetNextClamped |
( |
| ) |
|
Sets to the next possible value in the domain (clamped, i.e. last.next -> last) and returns itself.
◆ SetPositionIndex()
void grail::evolution::IEvoParam::SetPositionIndex |
( |
size_t |
position | ) |
|
Sets the position of the paramter i.e. the index of the currently assigned element from the domain.
◆ SetPrev()
IEvoParam const * grail::evolution::IEvoParam::SetPrev |
( |
| ) |
|
Sets to the previous possible value in the domain (wrapped, i.e. first.prev -> last) and returns itself.
◆ SetPrevClamped()
IEvoParam const * grail::evolution::IEvoParam::SetPrevClamped |
( |
| ) |
|
Sets to the previous possible value in the domain (clamped, i.e. first.prev -> first) and returns itself.
◆ positionIndex
size_t grail::evolution::IEvoParam::positionIndex |
|
protected |
IEvoParam uses @positionIndex to point to an element from its domain.
The documentation for this class was generated from the following files: