source: trunk/lib/statistics/WilcoxonFoldChange.h @ 465

Last change on this file since 465 was 465, checked in by Peter, 17 years ago

implemented score for WilcoxonFoldChange?

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