source: trunk/lib/utility/WeNNI.h @ 303

Last change on this file since 303 was 303, checked in by Peter, 17 years ago

docs

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