source: branches/peters_vector/lib/statistics/FoldChange.h @ 469

Last change on this file since 469 was 469, checked in by Peter, 16 years ago

non compiling checking before revision after design meeting

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