yat  0.14.5pre
FoldChange.h
1 #ifndef _theplu_yat_statistics_foldchange_
2 #define _theplu_yat_statistics_foldchange_
3 
4 // $Id: FoldChange.h 2121 2009-12-13 16:17:07Z peter $
5 
6 /*
7  Copyright (C) 2005 Peter Johansson
8  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
9  Copyright (C) 2009 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 #include "Score.h"
28 
29 namespace theplu {
30 namespace yat {
31 namespace utility {
32  class VectorBase;
33 }
34 namespace statistics {
35 
39  class FoldChange : public Score
40  {
41  public:
42 
46  FoldChange(bool absolute=true);
47 
54  double score(const classifier::Target& target,
55  const utility::VectorBase& value) const;
56 
63  double score(const classifier::Target& target,
64  const classifier::DataLookupWeighted1D& value) const;
65 
73  double score(const classifier::Target& target,
74  const utility::VectorBase& value,
75  const utility::VectorBase& weight) const;
76 
77  private:
78 
82  FoldChange(const FoldChange&);
83 
87  FoldChange& operator=(const FoldChange&);
88 
89  };
90 
91 }}} // of namespace statistics, yat, and theplu
92 
93 #endif
Class for containing sample labels.
Definition: Target.h:47
Score given by the difference by the group means.
Definition: FoldChange.h:39
double score(const classifier::Target &target, const utility::VectorBase &value) const
This is the yat interface to GSL vector.
Definition: VectorBase.h:52
Interface Class for score classes.
Definition: Score.h:42
void absolute(bool absolute)
Function changing mode of Score.
Class for general weighted vector view.
Definition: DataLookupWeighted1D.h:43
FoldChange(bool absolute=true)
Default Constructor.

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