BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
SCORING
COMMON
baseFunction.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id: baseFunction.h,v 1.1 2005/11/21 19:27:02 anker Exp $
5
6
#ifndef BALL_SCORING_COMMON_BASEFUNCTION
7
#define BALL_SCORING_COMMON_BASEFUNCTION
8
9
namespace
BALL
10
{
11
14
class
ScoringBaseFunction
15
{
16
17
public
:
18
21
enum
BaseFunctionType
22
{
25
BASE_FUNCTION_TYPE__LINEAR
,
26
29
BASE_FUNCTION_TYPE__FERMI
30
};
31
32
34
ScoringBaseFunction
()
35
;
36
38
ScoringBaseFunction
(
float
lower,
float
upper)
39
;
40
42
virtual
~ScoringBaseFunction
()
43
;
44
46
virtual
void
setLower
(
float
lower)
47
;
48
50
virtual
void
setUpper
(
float
upper)
51
;
52
54
virtual
float
calculate
(
float
x)
const
55
;
56
58
virtual
float
calculate
(
float
x,
float
lower,
float
upper)
59
;
60
61
62
protected
:
63
64
//_
65
float
lower_
;
66
67
//_
68
float
upper_
;
69
70
};
71
72
}
73
74
75
#endif // BALL_SCORING_COMMON_BASEFUNCTION
Generated by
1.8.3.1