|
angel
mercurial changeset:
|
adaption on average min-max-difference
More...
#include <sa.hpp>
Public Member Functions | |
| gamma_adaption_average_t (int p_D, double p_scaling=1.0) | |
| Constructor. | |
| void | operator() (int costs, double &gamma) |
Operator, which finally changes . | |
Private Attributes | |
| int | D |
| int | sum_diff |
| int | last_min |
| int | last_max |
| int | imp |
| double | scaling |
adaption on average min-max-difference
Same as gamma_adaption_max_t with average instead of maximal difference.
| angel::gamma_adaption_average_t::gamma_adaption_average_t | ( | int | p_D, |
| double | p_scaling = 1.0 |
||
| ) | [inline] |
Constructor.
| p_D | The number of improvement before is changed |
| p_scaling | Scaling factor for , if omitted 1.0 is taken (no scaling) |
Definition at line 312 of file sa.hpp.
References D, scaling, and THROW_DEBUG_EXCEPT_MACRO.
| void angel::gamma_adaption_average_t::operator() | ( | int | costs, |
| double & | gamma | ||
| ) | [inline] |
int angel::gamma_adaption_average_t::D [private] |
Definition at line 305 of file sa.hpp.
Referenced by gamma_adaption_average_t(), and operator()().
int angel::gamma_adaption_average_t::imp [private] |
Definition at line 305 of file sa.hpp.
Referenced by operator()().
int angel::gamma_adaption_average_t::last_max [private] |
Definition at line 305 of file sa.hpp.
Referenced by operator()().
int angel::gamma_adaption_average_t::last_min [private] |
Definition at line 305 of file sa.hpp.
Referenced by operator()().
double angel::gamma_adaption_average_t::scaling [private] |
Definition at line 306 of file sa.hpp.
Referenced by gamma_adaption_average_t(), and operator()().
int angel::gamma_adaption_average_t::sum_diff [private] |
Definition at line 305 of file sa.hpp.
Referenced by operator()().