source: trunk/yat/classifier/FeatureSelectorIR.h @ 1437

Last change on this file since 1437 was 1437, checked in by Peter, 13 years ago

merge patch release 0.4.2 to trunk. Delta 0.4.2-0.4.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date ID
File size: 1.7 KB
Line 
1#ifndef _theplu_yat_classifier_featureselectorir_
2#define _theplu_yat_classifier_featureselectorir_
3
4// $Id$
5
6/*
7  Copyright (C) 2006, 2007 Jari Häkkinen, Peter Johansson
8
9  This file is part of the yat library, http://dev.thep.lu.se/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 "FeatureSelector.h"
28
29namespace theplu {
30namespace yat {
31namespace statistics {
32  class Score;
33}
34namespace classifier {
35
36  ///
37  /// @brief FeatureSelector using an InputRanker
38  ///
39  class FeatureSelectorIR : public FeatureSelector
40  {
41  public:
42    ///
43    /// @brief Default Constructor
44    ///
45    FeatureSelectorIR(statistics::Score& score, size_t N, size_t first=0);
46
47    ///
48    ///
49    ///
50    void update(const MatrixLookup& data, const Target& target);
51
52    ///
53    ///
54    ///
55    void update(const MatrixLookupWeighted& data, const Target& target);
56
57  private:
58    /// Copy Constructor
59    FeatureSelectorIR(const FeatureSelectorIR&);
60
61    /// Assignment operator
62    FeatureSelectorIR& operator=(const FeatureSelectorIR&);
63
64    statistics::Score& score_;
65
66  };
67
68}}} // of namespace classifier, yat, and theplu
69
70#endif
Note: See TracBrowser for help on using the repository browser.