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

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

Addresses #153. Introduced yat namespace. Removed alignment namespace. Clean up of code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1#ifndef _theplu_yat_statistics_wilcoxonfoldchange_
2#define _theplu_yat_statistics_wilcoxonfoldchange_
3
4// $Id: WilcoxonFoldChange.h 680 2006-10-11 17:49:03Z 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 "Score.h"
28
29namespace theplu {
30namespace yat {
31  namespace utility {
32    class vector;
33  }
34namespace statistics {
35
36  ///
37  /// @brief WilcoxonFoldChange
38  ///
39  class WilcoxonFoldChange : public Score
40  {
41  public:
42
43    ///
44    /// @brief Default Constructor
45    ///
46    WilcoxonFoldChange(bool absolute=true);
47
48    ///
49    /// @return difference of the means of the two classes
50    ///
51    /// @param target defining the two groups (Target.binary() )
52    /// @param value vector of the values
53    ///
54    double score(const classifier::Target& target, 
55                 const utility::vector& value); 
56 
57    ///
58    /// @return difference of the weighted means of the two classes
59    ///
60    /// @param target defining the two groups (Target.binary() )
61    /// @param value vector of the values (with weights)
62    ///
63    /// @note not implemented
64    ///
65    double score(const classifier::Target& target, 
66                 const classifier::DataLookupWeighted1D& value); 
67 
68    ///
69    /// @return difference of the weighted means of the two classes
70    ///
71    /// @param target defining the two groups
72    /// @param value vector of the values
73    /// @param weight vector of accompanied weight to the values
74    ///
75    /// @note not implemented
76    ///
77    double score(const classifier::Target& target, 
78                 const utility::vector& value, 
79                 const utility::vector& weight); 
80 
81  private:
82
83    ///
84    /// @brief Copy Constructor
85    ///
86    WilcoxonFoldChange(const WilcoxonFoldChange&);
87
88    ///
89    /// @brief Assignment operator
90    ///
91    WilcoxonFoldChange& operator=(const WilcoxonFoldChange&);
92  };
93
94}}} // of namespace statistics, yat, and theplu
95
96#endif
Note: See TracBrowser for help on using the repository browser.