yat
0.11.3pre
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
yat
statistics
Score.h
1
#ifndef _theplu_yat_statistics_score_
2
#define _theplu_yat_statistics_score_
3
4
// $Id: Score.h 2119 2009-12-12 23:11:43Z peter $
5
6
/*
7
Copyright (C) 2004, 2005 Peter Johansson
8
Copyright (C) 2006 Jari Häkkinen, Peter Johansson, Markus Ringnér
9
Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
10
11
This file is part of the yat library, http://dev.thep.lu.se/yat
12
13
The yat library is free software; you can redistribute it and/or
14
modify it under the terms of the GNU General Public License as
15
published by the Free Software Foundation; either version 3 of the
16
License, or (at your option) any later version.
17
18
The yat library is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21
General Public License for more details.
22
23
You should have received a copy of the GNU General Public License
24
along with yat. If not, see <http://www.gnu.org/licenses/>.
25
*/
26
27
namespace
theplu {
28
namespace
yat {
29
namespace
classifier {
30
class
Target;
31
class
DataLookup1D;
32
class
DataLookupWeighted1D;
33
}
34
namespace
utility {
35
class
VectorBase;
36
}
37
namespace
statistics {
38
42
class
Score
43
{
44
45
public
:
49
Score
(
bool
) ;
50
54
virtual
~Score
(
void
);
55
59
void
absolute
(
bool
absolute
);
60
66
virtual
double
67
score
(
const
classifier::Target
& target,
68
const
utility::VectorBase
& value)
const
= 0;
69
81
virtual
double
score
(
const
classifier::Target
& target,
82
const
classifier::DataLookup1D
& value)
const
;
83
95
virtual
double
96
score
(
const
classifier::Target
& target,
97
const
classifier::DataLookupWeighted1D
& value)
const
;
98
106
virtual
double
107
score
(
const
classifier::Target
& target,
108
const
utility::VectorBase
& value,
109
const
utility::VectorBase
& weight)
const
= 0;
110
123
double
score
(
const
classifier::Target
& target,
124
const
classifier::DataLookup1D
& value,
125
const
classifier::DataLookup1D
& weight)
const
;
126
127
protected
:
130
bool
absolute_
;
131
132
};
// class Score
133
134
}}}
// of namespace statistics, yat, and theplu
135
136
#endif
Generated on Sat May 24 2014 03:33:05 for yat by
1.8.2