Changeset 1447 for trunk/yat/normalization/QuantileNormalizer.cc
- Timestamp:
- Aug 28, 2008, 4:56:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/normalization/QuantileNormalizer.cc
r1432 r1447 35 35 namespace normalization { 36 36 37 void QuantileNormalizer::operator()(utility::Matrix& data) const 37 void QuantileNormalizer::operator()(const utility::Matrix& data, 38 utility::Matrix& result) const 38 39 { 39 40 utility::Matrix data_copy(data); … … 50 51 } 51 52 52 for (size_t column=0; column< data.columns(); ++column){53 for (size_t column=0; column<result.columns(); ++column){ 53 54 std::vector<size_t> index; 54 utility::sort_index(index, data.column_const_view(column));55 utility::sort_index(index, result.column_const_view(column)); 55 56 56 for (size_t row=0; row< data.rows(); ++row)57 data(index[row], column) = averager[row].mean();57 for (size_t row=0; row<result.rows(); ++row) 58 result(index[row], column) = averager[row].mean(); 58 59 } 59 60 }
Note: See TracChangeset
for help on using the changeset viewer.