00001 #ifndef _theplu_yat_statistics_foldchange_ 00002 #define _theplu_yat_statistics_foldchange_ 00003 00004 // $Id: FoldChange.h 1797 2009-02-12 18:07:10Z peter $ 00005 00006 /* 00007 Copyright (C) 2005 Peter Johansson 00008 Copyright (C) 2006, 2007, 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 namespace theplu { 00029 namespace yat { 00030 class utility::VectorBase; 00031 namespace statistics { 00032 00036 class FoldChange : public Score 00037 { 00038 public: 00039 00043 FoldChange(bool absolute=true); 00044 00051 double score(const classifier::Target& target, 00052 const utility::VectorBase& value) const; 00053 00060 double score(const classifier::Target& target, 00061 const classifier::DataLookupWeighted1D& value) const; 00062 00070 double score(const classifier::Target& target, 00071 const utility::VectorBase& value, 00072 const utility::VectorBase& weight) const; 00073 00074 private: 00075 00079 FoldChange(const FoldChange&); 00080 00084 FoldChange& operator=(const FoldChange&); 00085 00086 }; 00087 00088 }}} // of namespace statistics, yat, and theplu 00089 00090 #endif