BALL::LinearBaseFunction Class Reference

Linear base function. More...

#include <linearBaseFunction.h>

Inheritance diagram for BALL::LinearBaseFunction:
Inheritance graph
[legend]

List of all members.


Public Member Functions

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.
float calculate (float x) const
float calculate (float x, float lower, float upper)

Detailed Description

Linear base function.

Constructor & Destructor Documentation

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.


Generated on Thu Aug 6 18:30:44 2009 for BALL by doxygen 1.5.8