#include <BALL/SCORING/COMMON/linearBaseFunction.h>
Public Member Functions | |
LinearBaseFunction () | |
LinearBaseFunction (float lower, float upper) | |
float | calculate (float x) const |
float | calculate (float x, float lower, float upper) |
Linear base function
BALL::LinearBaseFunction::LinearBaseFunction | ( | ) |
The function is defined in such a way that the score is 1 for values < lower and 0 for values > upper. If you need contrary behaviour, you have to supply a "lower" which is greater than "upper". This will invert the function.
Reimplemented from BALL::ScoringBaseFunction.
Reimplemented from BALL::ScoringBaseFunction.