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

Last change on this file since 1268 was 1000, checked in by Jari Häkkinen, 14 years ago

trac moved to new location.

  • 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 Jari Häkkinen, Peter Johansson
8  Copyright (C) 2007 Peter Johansson
9
10  This file is part of the yat library, http://trac.thep.lu.se/yat
11
12  The yat library is free software; you can redistribute it and/or
13  modify it under the terms of the GNU General Public License as
14  published by the Free Software Foundation; either version 2 of the
15  License, or (at your option) any later version.
16
17  The yat library is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  General Public License for more details.
21
22  You should have received a copy of the GNU General Public License
23  along with this program; if not, write to the Free Software
24  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25  02111-1307, USA.
26*/
27
28#include "FeatureSelector.h"
29
30namespace theplu {
31namespace yat {
32namespace statistics {
33  class Score;
34}
35namespace classifier {
36
37  ///
38  /// @brief FeatureSelector using an InputRanker
39  ///
40  class FeatureSelectorIR : public FeatureSelector
41  {
42  public:
43    ///
44    /// @brief Default Constructor
45    ///
46    FeatureSelectorIR(statistics::Score& score, size_t N, size_t first=0);
47
48    ///
49    ///
50    ///
51    void update(const MatrixLookup& data, const Target& target);
52
53    ///
54    ///
55    ///
56    void update(const MatrixLookupWeighted& data, const Target& target);
57
58  private:
59    /// Copy Constructor
60    FeatureSelectorIR(const FeatureSelectorIR&);
61
62    /// Assignment operator
63    FeatureSelectorIR& operator=(const FeatureSelectorIR&);
64
65    statistics::Score& score_;
66
67  };
68
69}}} // of namespace classifier, yat, and theplu
70
71#endif
Note: See TracBrowser for help on using the repository browser.