00001 #ifndef _theplu_yat_utility_wenni_ 00002 #define _theplu_yat_utility_wenni_ 00003 00004 // $Id: WeNNI.h 1797 2009-02-12 18:07:10Z 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 #include <iostream> 00033 00034 namespace theplu { 00035 namespace yat { 00036 namespace utility { 00037 00054 class WeNNI : public NNI 00055 { 00056 public: 00060 WeNNI(const utility::Matrix& matrix,const utility::Matrix& weight, 00061 const unsigned int neighbours); 00062 00079 unsigned int estimate(void); 00080 00084 const utility::Matrix& imputed_data_raw(void) const 00085 { return imputed_data_raw_; } 00086 00087 00088 private: 00089 00090 utility::Matrix imputed_data_raw_; 00091 }; 00092 00093 }}} // of namespace utility, yat, and theplu 00094 00095 #endif