Last change
on this file since 246 was
246,
checked in by Peter, 18 years ago
|
only doc
|
-
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 246 2005-02-23 19:17:31Z 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 | |
---|
12 | namespace theplu { |
---|
13 | namespace 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 | /// |
---|
43 | /// @return A const reference to imputed_data_raw. |
---|
44 | /// |
---|
45 | const gslapi::matrix& imputed_data_raw(void) const |
---|
46 | { return imputed_data_raw_; } |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | private: |
---|
51 | |
---|
52 | gslapi::matrix imputed_data_raw_; |
---|
53 | }; |
---|
54 | |
---|
55 | }} // of namespace cpptools and namespace theplu |
---|
56 | |
---|
57 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.