yat  0.12.3pre
WeNNI.h
1 #ifndef _theplu_yat_utility_wenni_
2 #define _theplu_yat_utility_wenni_
3 
4 // $Id: WeNNI.h 2526 2011-07-25 02:03:35Z peter $
5 
6 /*
7  Copyright (C) 2004 Jari Häkkinen
8  Copyright (C) 2005 Peter Johansson
9  Copyright (C) 2006 Jari Häkkinen
10  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
11  Copyright (C) 2009 Jari Häkkinen
12  Copyright (C) 2011 Peter Johansson
13 
14  This file is part of the yat library, http://dev.thep.lu.se/yat
15 
16  The yat library is free software; you can redistribute it
17  and/or modify it under the terms of the GNU General Public License
18  as published by the Free Software Foundation; either version 3 of
19  the License, or (at your option) any later version.
20 
21  The yat library is distributed in the hope that it will be
22  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
23  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  General Public License for more details.
25 
26  You should have received a copy of the GNU General Public License
27  along with yat. If not, see <http://www.gnu.org/licenses/>.
28 */
29 
30 #include "NNI.h"
31 #include "Matrix.h"
32 
33 namespace theplu {
34 namespace yat {
35 namespace utility {
36 
53  class WeNNI : public NNI
54  {
55  public:
59  WeNNI(const utility::Matrix& matrix,const utility::Matrix& weight,
60  const unsigned int neighbours);
61 
78  unsigned int estimate(void);
79 
83  const utility::Matrix& imputed_data_raw(void) const;
84 
85  private:
86 
87  utility::Matrix imputed_data_raw_;
88  };
89 
90 }}} // of namespace utility, yat, and theplu
91 
92 #endif
Weighted Nearest Neighbour Imputation.
Definition: WeNNI.h:53
WeNNI(const utility::Matrix &matrix, const utility::Matrix &weight, const unsigned int neighbours)
unsigned int estimate(void)
Function doing WeNNI imputation.
Interface to GSL matrix.
Definition: Matrix.h:63
Interface class for nearest neighbour imputation (NNI) algorithms.
Definition: NNI.h:79
const utility::Matrix & imputed_data_raw(void) const

Generated on Mon Jun 1 2015 12:29:52 for yat by  doxygen 1.8.5