Changeset 376
- Timestamp:
- Aug 8, 2005, 12:32:48 AM (18 years ago)
- Location:
- trunk/lib/utility
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/utility/Merge.h
r334 r376 14 14 namespace theplu { 15 15 namespace utility { 16 17 using namespace std;18 16 19 17 /// … … 38 36 /// annotations(vector) 39 37 /// 40 Merge( istream& data, istream& error,istream& annotations);38 Merge(std::istream& data, std::istream& error, std::istream& annotations); 41 39 42 40 /// … … 44 42 /// annotations(vector) 45 43 /// 46 Merge(gslapi::matrix& data, gslapi::matrix& error, 47 vector<string>& annotations);44 Merge(gslapi::matrix& data, gslapi::matrix& error, 45 std::vector<std::string>& annotations); 48 46 49 47 /// … … 65 63 gslapi::matrix data_; 66 64 gslapi::matrix error_; 67 vector<string> annots_;65 std::vector<std::string> annots_; 68 66 u_int nof_assays_; 69 67 70 68 void calculate_weights(gslapi::matrix&); 71 void merging( vector<u_int>, gslapi::matrix&);69 void merging(std::vector<u_int>, gslapi::matrix&); 72 70 }; 73 71 -
trunk/lib/utility/NNI.h
r303 r376 12 12 namespace theplu { 13 13 namespace utility { 14 15 using namespace std;16 14 17 15 /// … … 86 84 /// @return indices of rows in data matrix not imputed 87 85 /// 88 inline vector<size_t> not_imputed(void) const { return not_imputed_; }86 inline std::vector<size_t> not_imputed(void) const { return not_imputed_; } 89 87 90 88 protected: 91 vector<pair<u_int,double> > calculate_distances(const u_int) const;92 vector<u_int> nearest_neighbours(const u_int,93 const vector<pair<u_int,double> >&) const;89 std::vector<std::pair<u_int,double> > calculate_distances(const u_int) const; 90 std::vector<u_int> nearest_neighbours(const u_int, 91 const std::vector<std::pair<u_int,double> >&) const; 94 92 95 93 const gslapi::matrix& data_; 96 94 gslapi::matrix imputed_data_; 97 95 u_int neighbours_; 98 vector<size_t> not_imputed_;96 std::vector<size_t> not_imputed_; 99 97 const gslapi::matrix& weight_; 100 98 }; -
trunk/lib/utility/WeNNI.h
r303 r376 14 14 namespace theplu { 15 15 namespace utility { 16 17 using namespace std;18 16 19 17 /// -
trunk/lib/utility/kNNI.h
r303 r376 39 39 40 40 private: 41 vector<u_int> mv_rows_; // index to rows that have values to estimate41 std::vector<u_int> mv_rows_; // index to rows that have values to estimate 42 42 }; 43 43
Note: See TracChangeset
for help on using the changeset viewer.