yat  0.8.3pre
SNRScore.h
00001 #ifndef _theplu_yat_statistics_snr
00002 #define _theplu_yat_statistics_snr
00003 
00004 // $Id: SNRScore.h 2119 2009-12-12 23:11:43Z peter $
00005 
00006 /*
00007   Copyright (C) 2006, 2007 Jari Häkkinen, Peter Johansson, Markus Ringnér
00008   Copyright (C) 2008 Jari Häkkinen, Peter Johansson
00009 
00010   This file is part of the yat library, http://dev.thep.lu.se/yat
00011 
00012   The yat library is free software; you can redistribute it and/or
00013   modify it under the terms of the GNU General Public License as
00014   published by the Free Software Foundation; either version 3 of the
00015   License, or (at your option) any later version.
00016 
00017   The yat library is distributed in the hope that it will be useful,
00018   but WITHOUT ANY WARRANTY; without even the implied warranty of
00019   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00020   General Public License for more details.
00021 
00022   You should have received a copy of the GNU General Public License
00023   along with yat. If not, see <http://www.gnu.org/licenses/>.
00024 */
00025 
00026 #include "Score.h"
00027 
00028 #include <gsl/gsl_cdf.h>
00029 
00030 namespace theplu {
00031   namespace yat {
00032     namespace utility {
00033       class VectorBase;
00034     }
00035     namespace classifier {
00036       class DataLookWeighted1D;
00037     }
00038     namespace statistics {  
00039 
00049       class SNRScore : public Score
00050       {
00051         
00052       public:
00056         SNRScore(bool absolute=true);
00057         
00061         virtual ~SNRScore(void);
00062         
00071         double score(const classifier::Target& target, 
00072                      const utility::VectorBase& value) const; 
00073         
00082         double score(const classifier::Target& target,
00083                      const classifier::DataLookupWeighted1D& value) const;          
00084         
00093         double score(const classifier::Target& target, 
00094                      const utility::VectorBase& value, 
00095                      const utility::VectorBase& weight) const;          
00096         
00097       };
00098       
00099       
00100     }}} // of namespace statistics, yat, and theplu
00101 
00102 #endif

Generated on Thu Dec 20 2012 03:12:58 for yat by  doxygen 1.8.0-20120409