- Timestamp:
- Apr 30, 2005, 3:39:27 PM (17 years ago)
- Location:
- trunk/lib
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/gslapi/matrix.cc
r295 r301 52 52 u_int nof_rows = 0; 53 53 std::vector<double> v; 54 for (nof_rows = 0; cpptools::read_to_double(is, v); nof_rows++) {54 for (nof_rows = 0; utility::read_to_double(is, v); nof_rows++) { 55 55 56 56 // Ignoring empty lines -
trunk/lib/gslapi/utility.cc
r298 r301 33 33 { 34 34 vector vec(invec); 35 theplu::cpptools::random_singleton*36 rnd= theplu::cpptools::random_singleton::get_instance();35 utility::random_singleton* 36 rnd=utility::random_singleton::get_instance(); 37 37 for (size_t i=0; i<vec.size(); i++){ 38 38 size_t index = rnd->get_uniform_int(vec.size()-i); -
trunk/lib/statistics/ROC.cc
r295 r301 151 151 } 152 152 std::sort(value_.begin(),value_.end(), 153 cpptools::pair_value_compare<double, double>());153 utility::pair_value_compare<double, double>()); 154 154 } 155 155 -
trunk/lib/svm/ConsensusInputRanker.cc
r298 r301 44 44 //sort medians and assign id_ and rank_ 45 45 sort(median.begin(), median.end(), 46 cpptools::pair_value_compare<size_t, double>());46 utility::pair_value_compare<size_t, double>()); 47 47 id_.resize(data.rows()); 48 48 rank_.resize(data.rows()); … … 81 81 //sort medians and assign id_ and rank_ 82 82 sort(median.begin(), median.end(), 83 cpptools::pair_value_compare<size_t, double>());83 utility::pair_value_compare<size_t, double>()); 84 84 id_.resize(data.rows()); 85 85 rank_.resize(data.rows()); -
trunk/lib/svm/CrossValidation.cc
r295 r301 24 24 } 25 25 26 cpptools::my_uniform_rng a;26 utility::my_uniform_rng a; 27 27 random_shuffle(index_negative_.begin(), index_negative_.end(), a); 28 28 random_shuffle(index_positive_.begin(), index_positive_.end(), a); … … 33 33 if (count_==k_){ 34 34 count_=0; 35 cpptools::my_uniform_rng a;35 utility::my_uniform_rng a; 36 36 random_shuffle(index_negative_.begin(), index_negative_.end(), a); 37 37 random_shuffle(index_positive_.begin(), index_positive_.end(), a); … … 57 57 } 58 58 59 }} // of namespace cpptoolsand namespace theplu59 }} // of namespace svm and namespace theplu -
trunk/lib/svm/InputRanker.cc
r295 r301 49 49 //sort the scores and assign id_ and rank_ 50 50 sort(score.begin(), score.end(), 51 cpptools::pair_value_compare<size_t, double>());51 utility::pair_value_compare<size_t, double>()); 52 52 53 53 for (size_t i=0; i<nof_genes; i++){ … … 84 84 //sort the scores and assign id_ and rank_ 85 85 sort(score.begin(), score.end(), 86 cpptools::pair_value_compare<size_t, double>());86 utility::pair_value_compare<size_t, double>()); 87 87 88 88 for (size_t i=0; i<nof_genes; i++){ -
trunk/lib/svm/SVM.cc
r295 r301 74 74 for (size_t i=0; i<E.size(); i++) 75 75 tmp[i]=i; 76 cpptools::my_uniform_rng a;76 utility::my_uniform_rng a; 77 77 random_shuffle(tmp.begin(), tmp.end(), a); 78 78 for (size_t i=0; i<tmp.size(); i++){ … … 212 212 213 213 214 }} // of namespace cpptoolsand namespace theplu214 }} // of namespace svm and namespace theplu -
trunk/lib/utility/Alignment.cc
r295 r301 8 8 9 9 namespace theplu { 10 namespace cpptools{10 namespace utility { 11 11 namespace alignment { 12 12 … … 61 61 } 62 62 63 }}} // of namespace alignment namespace cpptoolsand namespace theplu63 }}} // of namespace alignment namespace utility and namespace theplu -
trunk/lib/utility/Alignment.h
r295 r301 13 13 } 14 14 15 namespace cpptools{15 namespace utility { 16 16 // Jari, this should probably go somewhere else for doxygen to process. 17 17 /// … … 46 46 const double gap); 47 47 48 }}} // of namespace alignment namespace cpptoolsand namespace theplu48 }}} // of namespace alignment namespace utility and namespace theplu 49 49 50 50 #endif -
trunk/lib/utility/FileIO.cc
r295 r301 8 8 9 9 namespace theplu { 10 namespace cpptools{10 namespace utility { 11 11 12 12 int FileIO::access_rights(const std::string& path, … … 33 33 } 34 34 35 }} // of namespace cpptoolsand namespace theplu35 }} // of namespace utility and namespace theplu -
trunk/lib/utility/FileIO.h
r295 r301 7 7 8 8 namespace theplu { 9 namespace cpptools{9 namespace utility { 10 10 11 11 /// … … 34 34 }; 35 35 36 }} // of namespace cpptoolsand namespace theplu36 }} // of namespace utility and namespace theplu 37 37 38 38 #endif -
trunk/lib/utility/Merge.cc
r295 r301 14 14 15 15 namespace theplu { 16 namespace cpptools{16 namespace utility { 17 17 18 18 using namespace std; … … 117 117 } 118 118 119 }} // of namespace cpptoolsand namespace theplu119 }} // of namespace utility and namespace theplu -
trunk/lib/utility/Merge.h
r295 r301 5 5 6 6 #include <c++_tools/gslapi/matrix.h> 7 //#include <c++_tools/gslapi/vector.h>8 7 9 8 #include <iostream> … … 14 13 15 14 namespace theplu { 16 namespace cpptools{15 namespace utility { 17 16 18 17 using namespace std; … … 73 72 }; 74 73 75 }} // of namespace cpptoolsand namespace theplu74 }} // of namespace utility and namespace theplu 76 75 77 76 #endif -
trunk/lib/utility/NNI.cc
r295 r301 11 11 12 12 namespace theplu { 13 namespace cpptools{13 namespace utility { 14 14 15 15 using namespace std; … … 72 72 73 73 74 }} // of namespace cpptoolsand namespace theplu74 }} // of namespace utility and namespace theplu -
trunk/lib/utility/NNI.h
r295 r301 11 11 12 12 namespace theplu { 13 namespace cpptools{13 namespace utility { 14 14 15 15 using namespace std; … … 100 100 }; 101 101 102 }} // of namespace cpptoolsand namespace theplu102 }} // of namespace utility and namespace theplu 103 103 104 104 #endif -
trunk/lib/utility/PCA.cc
r295 r301 10 10 11 11 namespace theplu { 12 namespace cpptools{12 namespace utility { 13 13 14 14 //PCA::PCA() : process_( false ), explained_calc_( false ){} … … 29 29 30 30 // Single value decompose the data matrix 31 std::auto_ptr< cpptools::SVD> pSVD( new cpptools::SVD( A_center ) );31 std::auto_ptr<SVD> pSVD( new SVD( A_center ) ); 32 32 pSVD->decompose(); 33 33 gslapi::matrix U = pSVD->U(); … … 77 77 78 78 // Single value decompose the data matrix 79 std::auto_ptr< cpptools::SVD> pSVD( new cpptools::SVD( A_center ) );79 std::auto_ptr<SVD> pSVD( new SVD( A_center ) ); 80 80 pSVD->decompose(); 81 81 gslapi::matrix U = pSVD->U(); … … 215 215 } 216 216 217 }} // of namespace cpptoolsand namespace theplu217 }} // of namespace utility and namespace theplu -
trunk/lib/utility/PCA.h
r295 r301 16 16 17 17 namespace theplu { 18 namespace cpptools{18 namespace utility { 19 19 20 20 /** … … 132 132 }; // class PCA 133 133 134 }} // of namespace cpptoolsand namespace theplu134 }} // of namespace utility and namespace theplu 135 135 136 136 #endif -
trunk/lib/utility/SVD.cc
r295 r301 5 5 6 6 namespace theplu { 7 namespace cpptools{7 namespace utility { 8 8 9 9 … … 62 62 63 63 64 }} // of namespace cpptoolsand namespace theplu64 }} // of namespace utility and namespace theplu -
trunk/lib/utility/SVD.h
r295 r301 15 15 /// namespace. 16 16 /// 17 namespace cpptools{17 namespace utility { 18 18 19 19 // Jari check that interface is complete … … 128 128 }; 129 129 130 }} // of namespace cpptoolsand namespace theplu130 }} // of namespace utility and namespace theplu 131 131 132 132 #endif -
trunk/lib/utility/WeNNI.cc
r295 r301 10 10 11 11 namespace theplu { 12 namespace cpptools{12 namespace utility { 13 13 14 14 … … 63 63 64 64 65 }} // of namespace cpptoolsand namespace theplu65 }} // of namespace utility and namespace theplu -
trunk/lib/utility/WeNNI.h
r295 r301 13 13 14 14 namespace theplu { 15 namespace cpptools{15 namespace utility { 16 16 17 17 using namespace std; … … 55 55 }; 56 56 57 }} // of namespace cpptoolsand namespace theplu57 }} // of namespace utility and namespace theplu 58 58 59 59 #endif -
trunk/lib/utility/kNNI.cc
r295 r301 11 11 12 12 namespace theplu { 13 namespace cpptools{13 namespace utility { 14 14 15 15 kNNI::kNNI(const gslapi::matrix& matrix,const gslapi::matrix& flag, … … 67 67 68 68 69 }} // of namespace cpptoolsand namespace theplu69 }} // of namespace utility and namespace theplu -
trunk/lib/utility/kNNI.h
r295 r301 10 10 11 11 namespace theplu { 12 namespace cpptools{12 namespace utility { 13 13 14 14 /// … … 42 42 }; 43 43 44 }} // of namespace cpptoolsand namespace theplu44 }} // of namespace utility and namespace theplu 45 45 46 46 #endif -
trunk/lib/utility/random_singleton.cc
r295 r301 4 4 5 5 namespace theplu { 6 namespace cpptools{6 namespace utility { 7 7 8 8 // Static members … … 57 57 } 58 58 59 }} // of namespace cpptoolsand namespace theplu59 }} // of namespace utility and namespace theplu -
trunk/lib/utility/random_singleton.h
r295 r301 13 13 14 14 namespace theplu { 15 namespace cpptools{15 namespace utility { 16 16 17 17 /** … … 215 215 } 216 216 217 }} // of namespace cpptoolsand namespace theplu217 }} // of namespace utility and namespace theplu 218 218 219 219 #endif -
trunk/lib/utility/stl_utility.cc
r295 r301 9 9 10 10 namespace theplu { 11 namespace cpptools{11 namespace utility { 12 12 13 13 bool is_float(const std::string& s) … … 117 117 118 118 119 }} // end of namespace cpptoolsand namespace thep119 }} // end of namespace utility and namespace thep 120 120 -
trunk/lib/utility/stl_utility.h
r295 r301 17 17 18 18 namespace theplu { 19 namespace cpptools{19 namespace utility { 20 20 21 21 /// … … 85 85 86 86 87 }} // of namespace cpptoolsand namespace theplu87 }} // of namespace utility and namespace theplu 88 88 89 89 #endif
Note: See TracChangeset
for help on using the changeset viewer.