source: trunk/c++_tools/statistics/WilcoxonFoldChange.h @ 675

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

References #83. Changing project name to yat. Compilation will fail in this revision.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1#ifndef _theplu_statistics_wilcoxonfoldchange_
2#define _theplu_statistics_wilcoxonfoldchange_
3
4// $Id: WilcoxonFoldChange.h 675 2006-10-10 12:08:45Z jari $
5
6/*
7  Copyright (C) The authors contributing to this file.
8
9  This file is part of the yat library, http://lev.thep.lu.se/trac/yat
10
11  The yat library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License as
13  published by the Free Software Foundation; either version 2 of the
14  License, or (at your option) any later version.
15
16  The yat library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  02111-1307, USA.
25*/
26
27#include "yat/statistics/Score.h"
28
29namespace theplu {
30  namespace utility {
31    class vector;
32  }
33namespace statistics {
34
35  ///
36  /// @brief WilcoxonFoldChange
37  ///
38  class WilcoxonFoldChange : public Score
39  {
40  public:
41
42    ///
43    /// @brief Default Constructor
44    ///
45    WilcoxonFoldChange(bool absolute=true);
46
47    ///
48    /// @return difference of the means of the two classes
49    ///
50    /// @param target defining the two groups (Target.binary() )
51    /// @param value vector of the values
52    ///
53    double score(const classifier::Target& target, 
54                 const utility::vector& value); 
55 
56    ///
57    /// @return difference of the weighted means of the two classes
58    ///
59    /// @param target defining the two groups (Target.binary() )
60    /// @param value vector of the values (with weights)
61    ///
62    /// @note not implemented
63    ///
64    double score(const classifier::Target& target, 
65                 const classifier::DataLookupWeighted1D& value); 
66 
67    ///
68    /// @return difference of the weighted means of the two classes
69    ///
70    /// @param target defining the two groups
71    /// @param value vector of the values
72    /// @param weight vector of accompanied weight to the values
73    ///
74    /// @note not implemented
75    ///
76    double score(const classifier::Target& target, 
77                 const utility::vector& value, 
78                 const utility::vector& weight); 
79 
80  private:
81
82    ///
83    /// @brief Copy Constructor
84    ///
85    WilcoxonFoldChange(const WilcoxonFoldChange&);
86
87    ///
88    /// @brief Assignment operator
89    ///
90    WilcoxonFoldChange& operator=(const WilcoxonFoldChange&);
91
92  };
93
94} // of namespace statistics
95} // of namespace theplu
96
97#endif
Note: See TracBrowser for help on using the repository browser.