yat  0.21pre
WeNNI.h
1 #ifndef _theplu_yat_utility_wenni_
2 #define _theplu_yat_utility_wenni_
3 
4 // $Id: WeNNI.h 4207 2022-08-26 04:36:28Z 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, 2022 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 MatrixBase& matrix, const MatrixBase& weight,
60  const unsigned int neighbours);
61 
78  unsigned int estimate(void);
79 
83  const Matrix& imputed_data_raw(void) const;
84 
85  private:
86  Matrix imputed_data_raw_;
87  };
88 
89 }}} // of namespace utility, yat, and theplu
90 
91 #endif
Definition: MatrixBase.h:54
const Matrix & imputed_data_raw(void) const
The Department of Theoretical Physics namespace as we define it.
Weighted Nearest Neighbour Imputation.
Definition: WeNNI.h:53
unsigned int estimate(void)
Function doing WeNNI imputation.
Interface to GSL matrix.
Definition: Matrix.h:104
WeNNI(const MatrixBase &matrix, const MatrixBase &weight, const unsigned int neighbours)
Interface class for nearest neighbour imputation (NNI) algorithms.
Definition: NNI.h:80

Generated on Wed Jan 25 2023 03:34:29 for yat by  doxygen 1.8.14