source: trunk/yat/classifier/IGP.h @ 831

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

Refs #185.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date ID
File size: 1.8 KB
Line 
1#ifndef _theplu_yat_classifier_igp_
2#define _theplu_yat_classifier_igp_
3
4// $Id$
5
6/*
7  Copyright (C) 2006 Jari Häkkinen, Markus Ringnér, Peter Johansson
8
9  This file is part of the yat library, http://lev.thep.lu.se/trac/yat
10
11  The yat library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License as
13  published by the Free Software Foundation; either version 2 of the
14  License, or (at your option) any later version.
15
16  The yat library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  02111-1307, USA.
25*/
26
27#include "yat/utility/vector.h"
28
29namespace theplu {
30namespace yat {
31
32  namespace statistics {
33    class Distance;
34  }
35
36namespace classifier { 
37
38  class Target;
39  class MatrixLookup;
40
41  ///
42  /// @brief Class for In Group Proportions (IGP)
43  /// See Kapp and Tibshirani, Biostatistics (2006).
44  ///
45  class IGP
46  {
47 
48  public:
49    ///
50    /// Constructor taking the training data, the target vector and
51    /// the distance measure as input.
52    ///
53    IGP(const MatrixLookup&, const Target&, const statistics::Distance&);
54
55    ///
56    /// Destrucutor
57    ///
58    virtual ~IGP();
59
60    ///
61    /// @return the IGP score for each class as elements in a vector.
62    ///
63    const utility::vector& score(void) const {return igp_;}
64
65
66  private:
67    utility::vector igp_;
68
69    const statistics::Distance& distance_;
70    const MatrixLookup& matrix_;
71    const Target& target_;
72  }; 
73 
74}}} // of namespace classifier, yat, and theplu
75
76#endif
Note: See TracBrowser for help on using the repository browser.