00001 #ifndef _theplu_yat_utility_wenni_ 00002 #define _theplu_yat_utility_wenni_ 00003 00004 // $Id: WeNNI.h 2119 2009-12-12 23:11:43Z peter $ 00005 00006 /* 00007 Copyright (C) 2004 Jari Häkkinen 00008 Copyright (C) 2005 Peter Johansson 00009 Copyright (C) 2006 Jari Häkkinen 00010 Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson 00011 Copyright (C) 2009 Jari Häkkinen 00012 00013 This file is part of the yat library, http://dev.thep.lu.se/yat 00014 00015 The yat library is free software; you can redistribute it 00016 and/or modify it under the terms of the GNU General Public License 00017 as published by the Free Software Foundation; either version 3 of 00018 the License, or (at your option) any later version. 00019 00020 The yat library is distributed in the hope that it will be 00021 useful, but WITHOUT ANY WARRANTY; without even the implied warranty 00022 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 General Public License for more details. 00024 00025 You should have received a copy of the GNU General Public License 00026 along with yat. If not, see <http://www.gnu.org/licenses/>. 00027 */ 00028 00029 #include "NNI.h" 00030 #include "Matrix.h" 00031 00032 namespace theplu { 00033 namespace yat { 00034 namespace utility { 00035 00052 class WeNNI : public NNI 00053 { 00054 public: 00058 WeNNI(const utility::Matrix& matrix,const utility::Matrix& weight, 00059 const unsigned int neighbours); 00060 00077 unsigned int estimate(void); 00078 00082 const utility::Matrix& imputed_data_raw(void) const 00083 { return imputed_data_raw_; } 00084 00085 00086 private: 00087 00088 utility::Matrix imputed_data_raw_; 00089 }; 00090 00091 }}} // of namespace utility, yat, and theplu 00092 00093 #endif