00001 // $Id: linearBaseFunction.h,v 1.1 2005/11/21 19:27:03 anker Exp $ 00002 00003 #ifndef BALL_SCORING_COMMON_LINEARBASEFUNCTION 00004 #define BALL_SCORING_COMMON_LINEARBASEFUNCTION 00005 00006 #include <BALL/SCORING/COMMON/baseFunction.h> 00007 00008 namespace BALL 00009 { 00010 00013 class LinearBaseFunction 00014 : public ScoringBaseFunction 00015 { 00016 00017 public: 00018 00020 LinearBaseFunction() 00021 ; 00022 00027 LinearBaseFunction(float lower, float upper) 00028 ; 00029 00031 float calculate(float x) const 00032 ; 00033 00035 float calculate(float x, float lower, float upper) 00036 ; 00037 00038 }; 00039 00040 } 00041 00042 #endif // BALL_SCORING_COMMON_LINEARBASEFUNCTION