source: trunk/src/WeNNI.h @ 228

Last change on this file since 228 was 228, checked in by Peter, 18 years ago

moved estimation from constructor, added function telling which rows were not imputed (due too many missing values).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 952 bytes
Line 
1// $Id: WeNNI.h 228 2005-02-01 14:06:51Z peter $
2
3#ifndef _theplu_cpptools_wenni_
4#define _theplu_cpptools_wenni_
5
6#include "NNI.h"
7
8#include <iostream>
9
10#include "matrix.h"
11
12namespace theplu {
13namespace cpptools {
14
15  using namespace std;
16
17  ///
18  /// WeNNI is a continuous weights generalization of the (binary
19  /// weights) kNNI algorithm presented by Troyanskaya et al. A
20  /// reference to this paper is found in the NNI document referred to
21  /// in the NNI class documentation. The NNI document also describes
22  /// WeNNI in depth.
23  ///
24  /// @see NNI and kNNI
25  ///
26  class WeNNI : public NNI
27  {
28  public:
29    ///
30    /// Constructor
31    ///
32    WeNNI(const gslapi::matrix& matrix,const gslapi::matrix& weight,
33          const u_int neighbours);
34
35    ///
36    /// Perform WeNNI on data in \a matrix with continuous uncertainty
37    /// weights in \a weight using \a neighbours for the new impute
38    /// value.
39    ///
40    u_int estimate(void);
41
42  private:
43
44
45  };
46
47}} // of namespace cpptools and namespace theplu
48
49#endif
Note: See TracBrowser for help on using the repository browser.