source: trunk/c++_tools/classifier/IGP.h @ 616

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

Removed gslapi namespace and put the code into utility namespace.
Move #ifndef _header_ idiom to top of touched header files.
Removed unneccesary #includes, and added needed #includes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date ID
File size: 973 bytes
Line 
1#ifndef _theplu_classifier_igp_
2#define _theplu_classifier_igp_
3
4// $Id$
5
6#include <c++_tools/utility/vector.h>
7
8namespace theplu {
9
10  namespace statistics {
11    class Distance;
12  }
13
14namespace classifier { 
15
16  class Target;
17  class MatrixLookup;
18
19  ///
20  /// @brief Class for In Group Proportions (IGP)
21  /// See Kapp and Tibshirani, Biostatistics (2006).
22  ///
23  class IGP
24  {
25 
26  public:
27    ///
28    /// Constructor taking the training data, the target vector and
29    /// the distance measure as input.
30    ///
31    IGP(const MatrixLookup&, const Target&, const statistics::Distance&);
32
33    ///
34    /// Destrucutor
35    ///
36    virtual ~IGP();
37
38    ///
39    /// @return the IGP score for each class as elements in a vector.
40    ///
41    const utility::vector& score(void) const {return igp_;}
42
43
44  private:
45    utility::vector igp_;
46
47    const statistics::Distance& distance_;
48    const MatrixLookup& matrix_;
49    const Target& target_;
50  }; 
51 
52}} // of namespace classifier and namespace theplu
53
54#endif
Note: See TracBrowser for help on using the repository browser.