Some evolution mode that changes at specified ages. More...
#include <ExpectedEvolutionMode.h>
Public Member Functions | |
ExpectedEvolutionMode (double break_precision=1e-5) | |
Create. More... | |
void | add_break (double age, MODE_TYPE mode) |
Add an evolution mode that applies up to the given age. More... | |
bool | near_break (double age) const |
Is the given age close to a break (hence ambigous mode). More... | |
MODE_TYPE | operator() (double age) const |
The evolution mode that corresponds to the given age. More... | |
Private Attributes | |
std::list< double > | __age_breaks |
The ages at which evolution mode changes occur. More... | |
std::list< MODE_TYPE > | __expected_mode |
The evolution modes that apply between consecutive __age_breaks. More... | |
double | __break_precision |
The precision with which breaks should be detected. More... | |
Some evolution mode that changes at specified ages.
Definition at line 22 of file ExpectedEvolutionMode.h.
|
inline |
Create.
Definition at line 34 of file ExpectedEvolutionMode.h.
|
inline |
Add an evolution mode that applies up to the given age.
Definition at line 39 of file ExpectedEvolutionMode.h.
|
inline |
Is the given age close to a break (hence ambigous mode).
Definition at line 43 of file ExpectedEvolutionMode.h.
|
inline |
The evolution mode that corresponds to the given age.
Definition at line 57 of file ExpectedEvolutionMode.h.
|
private |
The ages at which evolution mode changes occur.
Definition at line 25 of file ExpectedEvolutionMode.h.
|
private |
The precision with which breaks should be detected.
Definition at line 31 of file ExpectedEvolutionMode.h.
|
private |
The evolution modes that apply between consecutive __age_breaks.
Definition at line 28 of file ExpectedEvolutionMode.h.