Changeset 648 for trunk/c++_tools/utility/NNI.h
- Timestamp:
- Sep 14, 2006, 5:04:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/c++_tools/utility/NNI.h
r616 r648 111 111 112 112 protected: 113 /** \f$ d_{ij}^2=\frac {\sum_{k=1}^C w_{ik} w_{jk} (x_{ik}-x_{jk})^2 114 }{\sum_{k=l}^C w_{ik} w_{jk} } \f$ where C is the number of 115 */ columns 113 116 std::vector<std::pair<u_int,double> > calculate_distances(const u_int) const; 117 /// Contributing nearest neighbours are added up to the user set 118 /// number, and neighbours are disqualified if their element 119 /// (column) weight is zero 114 120 std::vector<u_int> nearest_neighbours(const u_int, 115 121 const std::vector<std::pair<u_int,double> >&) const; 122 /// 123 /// original data matrix 124 /// 125 const utility::matrix& data_; 116 126 117 const utility::matrix& data_; 127 /// 128 /// data after imputation 129 /// 118 130 utility::matrix imputed_data_; 131 132 /// 133 /// number of neighbor to use 134 /// 119 135 u_int neighbours_; 136 137 /// 138 /// which rows are not imputed due to lack of data 139 /// 120 140 std::vector<size_t> not_imputed_; 141 142 /// 143 /// weight matrix 144 /// 121 145 const utility::matrix& weight_; 122 146 };
Note: See TracChangeset
for help on using the changeset viewer.