yat  0.8.3pre
FoldChange.h
00001 #ifndef _theplu_yat_statistics_foldchange_
00002 #define _theplu_yat_statistics_foldchange_
00003 
00004 // $Id: FoldChange.h 2121 2009-12-13 16:17:07Z peter $
00005 
00006 /*
00007   Copyright (C) 2005 Peter Johansson
00008   Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
00009   Copyright (C) 2009 Peter Johansson
00010 
00011   This file is part of the yat library, http://dev.thep.lu.se/yat
00012 
00013   The yat library is free software; you can redistribute it and/or
00014   modify it under the terms of the GNU General Public License as
00015   published by the Free Software Foundation; either version 3 of the
00016   License, or (at your option) any later version.
00017 
00018   The yat library is distributed in the hope that it will be useful,
00019   but WITHOUT ANY WARRANTY; without even the implied warranty of
00020   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00021   General Public License for more details.
00022 
00023   You should have received a copy of the GNU General Public License
00024   along with yat. If not, see <http://www.gnu.org/licenses/>.
00025 */
00026 
00027 #include "Score.h"
00028 
00029 namespace theplu {
00030 namespace yat {
00031 namespace utility {
00032   class VectorBase;
00033 }
00034 namespace statistics {
00035 
00039   class FoldChange : public Score
00040   {
00041   public:
00042 
00046     FoldChange(bool absolute=true);
00047 
00054     double score(const classifier::Target& target, 
00055                  const utility::VectorBase& value) const; 
00056  
00063     double score(const classifier::Target& target, 
00064                  const classifier::DataLookupWeighted1D& value) const; 
00065  
00073     double score(const classifier::Target& target, 
00074                  const utility::VectorBase& value,
00075                  const utility::VectorBase& weight) const; 
00076  
00077   private:
00078 
00082     FoldChange(const FoldChange&);
00083 
00087     FoldChange& operator=(const FoldChange&);
00088 
00089   };
00090 
00091 }}} // of namespace statistics, yat, and theplu
00092 
00093 #endif

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