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

Last change on this file since 623 was 623, checked in by Peter, 15 years ago

fixes #112 and refs #123 added overloaded function score taking Target and DataLookupWeighted1D, which is needed for InputRanker?.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1#ifndef _theplu_statistics_wilcoxonfoldchange_
2#define _theplu_statistics_wilcoxonfoldchange_
3
4// $Id: WilcoxonFoldChange.h 623 2006-09-05 02:13:12Z peter $
5
6#include <c++_tools/statistics/Score.h>
7
8namespace theplu {
9  namespace utility {
10    class vector;
11  }
12namespace statistics {
13
14  ///
15  /// @brief WilcoxonFoldChange
16  ///
17  class WilcoxonFoldChange : public Score
18  {
19  public:
20
21    ///
22    /// @brief Default Constructor
23    ///
24    WilcoxonFoldChange(bool absolute=true);
25
26    ///
27    /// @return difference of the means of the two classes
28    ///
29    /// @param target is +1 or -1
30    /// @param value vector of the values
31    /// @train_set defining which values to use (number of values used
32    /// in the calculation is equal to size of \a train_set)
33    ///
34    double score(const classifier::Target& target, 
35                 const utility::vector& value); 
36 
37    ///
38    /// @return difference of the weighted means of the two classes
39    ///
40    /// @param value vector of the values (with weights)
41    /// @train_set defining which values to use (number of values used
42    /// in the calculation is equal to size of \a train_set)
43    ///
44    /// @note not implemented
45    ///
46    double score(const classifier::Target& target, 
47                 const classifier::DataLookupWeighted1D& value); 
48 
49    ///
50    /// @return difference of the weighted means of the two classes
51    ///
52    /// @param value vector of the values
53    /// @param weight vector of accompanied weight to the values
54    /// @train_set defining which values to use (number of values used
55    /// in the calculation is equal to size of \a train_set)
56    ///
57    /// @note not implemented
58    ///
59    double score(const classifier::Target& target, 
60                 const utility::vector& value, 
61                 const utility::vector& weight); 
62 
63  private:
64
65    ///
66    /// @brief Copy Constructor
67    ///
68    WilcoxonFoldChange(const WilcoxonFoldChange&);
69
70    ///
71    /// @brief Assignment operator
72    ///
73    WilcoxonFoldChange& operator=(const WilcoxonFoldChange&);
74
75  };
76
77} // of namespace statistics
78} // of namespace theplu
79
80#endif
Note: See TracBrowser for help on using the repository browser.