Changeset 1067
- Timestamp:
- May 14, 2009, 7:05:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/base2/net.sf.basedb.normalizers/trunk/src/c++/bin/qQN.cc
r1062 r1067 39 39 #include <cstdlib> 40 40 #include <fstream> 41 #include <functional> 41 42 #include <iostream> 43 #include <limits> 42 44 #include <stdexcept> 43 45 44 46 using namespace theplu::yat::normalizer; 45 47 using namespace theplu::yat::utility; 48 49 50 class CleanUpMatrix : std::unary_function<double, double> 51 { 52 public: 53 CleanUpMatrix(void) {} 54 55 inline DataWeight operator()(DataWeight x) const 56 { return ( x.data()>0 ? 57 x : DataWeight(std::numeric_limits<double>::quiet_NaN(),0.0) ); } 58 }; 46 59 47 60 … … 105 118 } 106 119 120 std::transform(m.begin(), m.end(), m.begin(), CleanUpMatrix()); 107 121 std::vector<double> target; 108 122 ( assay.present() ?
Note: See TracChangeset
for help on using the changeset viewer.