yat  0.14.5pre
SNRScore.h
1 #ifndef _theplu_yat_statistics_snr
2 #define _theplu_yat_statistics_snr
3 
4 // $Id: SNRScore.h 2992 2013-03-03 05:03:44Z peter $
5 
6 /*
7  Copyright (C) 2006, 2007 Jari Häkkinen, Peter Johansson, Markus Ringnér
8  Copyright (C) 2008 Jari Häkkinen, Peter Johansson
9 
10  This file is part of the yat library, http://dev.thep.lu.se/yat
11 
12  The yat library is free software; you can redistribute it and/or
13  modify it under the terms of the GNU General Public License as
14  published by the Free Software Foundation; either version 3 of the
15  License, or (at your option) any later version.
16 
17  The yat library is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with yat. If not, see <http://www.gnu.org/licenses/>.
24 */
25 
26 #include "Score.h"
27 
28 #include <gsl/gsl_cdf.h>
29 
30 namespace theplu {
31  namespace yat {
32  namespace utility {
33  class VectorBase;
34  }
35  namespace classifier {
36  class DataLookWeighted1D;
37  }
38  namespace statistics {
39 
49  class SNRScore : public Score
50  {
51 
52  public:
56  SNRScore(bool absolute=true);
57 
61  virtual ~SNRScore(void);
62 
71  double score(const classifier::Target& target,
72  const utility::VectorBase& value) const;
73 
82  double score(const classifier::Target& target,
83  const classifier::DataLookupWeighted1D& value) const;
84 
93  double score(const classifier::Target& target,
94  const utility::VectorBase& value,
95  const utility::VectorBase& weight) const;
96 
97  };
98 
99 
100  }}} // of namespace statistics, yat, and theplu
101 
102 #endif
Class for containing sample labels.
Definition: Target.h:47
double score(const classifier::Target &target, const utility::VectorBase &value) const
virtual ~SNRScore(void)
The destructor.
This is the yat interface to GSL vector.
Definition: VectorBase.h:52
Class for score based on signal-to-noise ratio (SNRScore).
Definition: SNRScore.h:49
Interface Class for score classes.
Definition: Score.h:42
void absolute(bool absolute)
Function changing mode of Score.
SNRScore(bool absolute=true)
Default Constructor.
Class for general weighted vector view.
Definition: DataLookupWeighted1D.h:43

Generated on Tue Sep 26 2017 02:33:29 for yat by  doxygen 1.8.5