source: trunk/yat/statistics/FoldChange.h @ 1797

Last change on this file since 1797 was 1797, checked in by Peter, 13 years ago

updating copyright statements

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1#ifndef _theplu_yat_statistics_foldchange_
2#define _theplu_yat_statistics_foldchange_
3
4// $Id: FoldChange.h 1797 2009-02-12 18:07:10Z peter $
5
6/*
7  Copyright (C) 2005 Peter Johansson
8  Copyright (C) 2006, 2007, 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
28namespace theplu {
29namespace yat {
30  class utility::VectorBase;
31namespace statistics {
32
33  ///
34  /// @brief Score given by the difference by the group means.
35  ///
36  class FoldChange : public Score
37  {
38  public:
39
40    ///
41    /// @brief Default Constructor
42    ///
43    FoldChange(bool absolute=true);
44
45    ///
46    /// @return difference of the means of the two classes
47    ///
48    /// @param target
49    /// @param value vector of the values
50    ///
51    double score(const classifier::Target& target, 
52                 const utility::VectorBase& value) const; 
53 
54    ///
55    /// @return difference of the means of the two classes
56    ///
57    /// @param target
58    /// @param value vector of the values (with weights)
59    ///
60    double score(const classifier::Target& target, 
61                 const classifier::DataLookupWeighted1D& value) const; 
62 
63    ///
64    /// @return difference of the weighted means of the two classes
65    ///
66    /// @param target
67    /// @param value vector of the values
68    /// @param weight vector of accompanied weight to the values
69    ///
70    double score(const classifier::Target& target, 
71                 const utility::VectorBase& value,
72                 const utility::VectorBase& weight) const; 
73 
74  private:
75
76    ///
77    /// @brief Copy Constructor
78    ///
79    FoldChange(const FoldChange&);
80
81    ///
82    /// @brief Assignment operator
83    ///
84    FoldChange& operator=(const FoldChange&);
85
86  };
87
88}}} // of namespace statistics, yat, and theplu
89
90#endif
Note: See TracBrowser for help on using the repository browser.