BALL::LinearBaseFunction Class Reference

#include <BALL/SCORING/COMMON/linearBaseFunction.h>

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

List of all members.

Public Member Functions

 LinearBaseFunction ()
 LinearBaseFunction (float lower, float upper)
float calculate (float x) const
float calculate (float x, float lower, float upper)

Detailed Description

Linear base function

Definition at line 13 of file linearBaseFunction.h.


Constructor & Destructor Documentation

BALL::LinearBaseFunction::LinearBaseFunction (  ) 
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.


Member Function Documentation

float BALL::LinearBaseFunction::calculate ( float  x,
float  lower,
float  upper 
) [virtual]

Reimplemented from BALL::ScoringBaseFunction.

float BALL::LinearBaseFunction::calculate ( float  x  )  const [virtual]

Reimplemented from BALL::ScoringBaseFunction.

Generated by  doxygen 1.6.3