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

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

?

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1// $Id: WilcoxonFoldChange.h 461 2005-12-16 15:34:37Z peter $
2
3#ifndef _theplu_statistics_wilcoxonfoldchange_
4#define _theplu_statistics_wilcoxonfoldchange_
5
6#include "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    ///
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    double 
46    score(const gslapi::vector& target, 
47          const gslapi::vector& value,
48          const gslapi::vector& weight,
49          const std::vector<size_t>& train_set = std::vector<size_t>()); 
50 
51  private:
52
53    ///
54    /// @brief Copy Constructor
55    ///
56    WilcoxonFoldChange(const WilcoxonFoldChange&);
57
58    ///
59    /// @brief Assignment operator
60    ///
61    WilcoxonFoldChange& operator=(const WilcoxonFoldChange&);
62
63  };
64
65} // of namespace statistics
66} // of namespace theplu
67
68#endif
Note: See TracBrowser for help on using the repository browser.