source: trunk/yat/statistics/WilcoxonFoldChange.h @ 1275

Last change on this file since 1275 was 1275, checked in by Jari Häkkinen, 13 years ago

Updating copyright statements.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1#ifndef _theplu_yat_statistics_wilcoxonfoldchange_
2#define _theplu_yat_statistics_wilcoxonfoldchange_
3
4// $Id: WilcoxonFoldChange.h 1275 2008-04-11 06:10:12Z jari $
5
6/*
7  Copyright (C) 2005 Peter Johansson
8  Copyright (C) 2006, 2007 Jari Häkkinen, Peter Johansson
9  Copyright (C) 2008 Peter Johansson
10
11  This file is part of the yat library, http://trac.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 2 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 this program; if not, write to the Free Software
25  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26  02111-1307, USA.
27*/
28
29#include "Score.h"
30
31namespace theplu {
32namespace yat {
33  namespace utility {
34    class VectorBase;
35  }
36namespace statistics {
37
38  ///
39  /// @brief WilcoxonFoldChange
40  ///
41  class WilcoxonFoldChange : public Score
42  {
43  public:
44
45    ///
46    /// @brief Default Constructor
47    ///
48    WilcoxonFoldChange(bool absolute=true);
49
50    ///
51    /// @return difference of the means of the two classes
52    ///
53    /// @param target defining the two groups (Target.binary() )
54    /// @param value vector of the values
55    ///
56    double score(const classifier::Target& target, 
57                 const utility::VectorBase& value) const; 
58 
59    ///
60    /// @return difference of the weighted means of the two classes
61    ///
62    /// @param target defining the two groups (Target.binary() )
63    /// @param value vector of the values (with weights)
64    ///
65    /// @note not implemented
66    ///
67    double score(const classifier::Target& target, 
68                 const classifier::DataLookupWeighted1D& value) const; 
69 
70    ///
71    /// @return difference of the weighted means of the two classes
72    ///
73    /// @param target defining the two groups
74    /// @param value vector of the values
75    /// @param weight vector of accompanied weight to the values
76    ///
77    /// @note not implemented
78    ///
79    double score(const classifier::Target& target, 
80                 const utility::VectorBase& value, 
81                 const utility::VectorBase& weight) const; 
82 
83  private:
84
85    ///
86    /// @brief Copy Constructor
87    ///
88    WilcoxonFoldChange(const WilcoxonFoldChange&);
89
90    ///
91    /// @brief Assignment operator
92    ///
93    WilcoxonFoldChange& operator=(const WilcoxonFoldChange&);
94  };
95
96}}} // of namespace statistics, yat, and theplu
97
98#endif
Note: See TracBrowser for help on using the repository browser.