Loading...
Searching...
No Matches
baseFunction.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: baseFunction.h,v 1.1 2005/11/21 19:27:02 anker Exp $
#ifndef BALL_SCORING_COMMON_BASEFUNCTION_H
#define BALL_SCORING_COMMON_BASEFUNCTION_H
namespace BALL
{
class ScoringBaseFunction
{
public:
enum BaseFunctionType
{
BASE_FUNCTION_TYPE__LINEAR,
BASE_FUNCTION_TYPE__FERMI
};
ScoringBaseFunction()
;
ScoringBaseFunction(float lower, float upper)
;
virtual ~ScoringBaseFunction()
;
virtual void setLower(float lower)
;
virtual void setUpper(float upper)
;
virtual float calculate(float x) const
;
virtual float calculate(float x, float lower, float upper)
;
protected:
//_
float lower_;
//_
float upper_;
};
}
#endif // BALL_SCORING_COMMON_BASEFUNCTION_H
BALL::ScoringBaseFunction::ScoringBaseFunction
ScoringBaseFunction(float lower, float upper)
BALL::ScoringBaseFunction::~ScoringBaseFunction
virtual ~ScoringBaseFunction()
BALL::ScoringBaseFunction::ScoringBaseFunction
ScoringBaseFunction()
BALL::ScoringBaseFunction::calculate
virtual float calculate(float x, float lower, float upper)
BALL::ScoringBaseFunction::setUpper
virtual void setUpper(float upper)
BALL::ScoringBaseFunction::setLower
virtual void setLower(float lower)
BALL::ScoringBaseFunction::calculate
virtual float calculate(float x) const
BALL::ScoringBaseFunction::lower_
float lower_
Definition baseFunction.h:65
BALL::ScoringBaseFunction::upper_
float upper_
Definition baseFunction.h:68
BALL::ScoringBaseFunction::BaseFunctionType
BaseFunctionType
Definition baseFunction.h:22
BALL::ScoringBaseFunction::BASE_FUNCTION_TYPE__LINEAR
@ BASE_FUNCTION_TYPE__LINEAR
Definition baseFunction.h:25
BALL::ScoringBaseFunction::BASE_FUNCTION_TYPE__FERMI
@ BASE_FUNCTION_TYPE__FERMI
Definition baseFunction.h:29
BALL
Definition constants.h:13