#include <BALL/SCORING/COMMON/linearBaseFunction.h>
Linear base function
Definition at line 13 of file linearBaseFunction.h.
◆ LinearBaseFunction() [1/2]
BALL::LinearBaseFunction::LinearBaseFunction |
( |
| ) |
|
◆ LinearBaseFunction() [2/2]
BALL::LinearBaseFunction::LinearBaseFunction |
( |
float |
lower, |
|
|
float |
upper |
|
) |
| |
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.
◆ calculate() [1/2]
float BALL::LinearBaseFunction::calculate |
( |
float |
x | ) |
const |
|
virtual |
◆ calculate() [2/2]
float BALL::LinearBaseFunction::calculate |
( |
float |
x, |
|
|
float |
lower, |
|
|
float |
upper |
|
) |
| |
|
virtual |