Changeset 1447 for trunk/yat/normalization
- Timestamp:
- Aug 28, 2008, 4:56:42 AM (15 years ago)
- Location:
- trunk/yat/normalization
- Files:
-
- 2 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 } -
trunk/yat/normalization/QuantileNormalizer.h
r1445 r1447 45 45 within a column is preserved in the normalization. 46 46 */ 47 void operator()(utility::Matrix& matrix) const; 47 void operator()(const utility::Matrix& matrix, 48 utility::Matrix& result) const; 48 49 }; 49 50
Note: See TracChangeset
for help on using the changeset viewer.