Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

FermiBaseFunction Class Reference

Sigmoidal base function. More...

#include <fermiBaseFunction.h>

Inheritance diagram for FermiBaseFunction:

ScoringBaseFunction List of all members.

Public Member Functions

 FermiBaseFunction (float lower, float upper) throw ()
 The function is defined in such a way that the score approaches 1 for values < lower and 0 for values > upper.
void setLower (float lower) throw ()
void setUpper (float upper) throw ()
float calculate (float x) const throw ()
float calculate (float x, float lower, float upper) throw ()

Detailed Description

Sigmoidal base function.


Constructor & Destructor Documentation

FermiBaseFunction::FermiBaseFunction float  lower,
float  upper
throw ()
 

The function is defined in such a way that the score approaches 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.