Changeset 1049


Ignore:
Timestamp:
May 6, 2009, 9:20:59 AM (14 years ago)
Author:
Jari Häkkinen
Message:

Addresses #206. Last commit destroyed nan fixing in changeset:1045 for some cases of reference selection, the nan fix is now restored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/base2/net.sf.basedb.normalizers/trunk/src/c++/bin/qQN.cc

    r1047 r1049  
    135135  while (getline(is, line)) {
    136136    size_t found=line.find("yes");
     137
    137138    if (found!=std::string::npos) {
     139      // use this assay as a part of reference
    138140      for (size_t row=0; row<m.rows(); ++row)
    139141        if (m(row,column).weight()) { // weight either 0 or 1
     
    144146          m(row,column).data()=0;
    145147    }
     148    else
     149      // this assay as not a part of the reference but fix nan
     150      for (size_t row=0; row<m.rows(); ++row)
     151        if (!m(row,column).weight()) // weight either 0 or 1
     152          m(row,column).data()=0;
     153
    146154    ++column;
    147155    if (column>m.columns())
Note: See TracChangeset for help on using the changeset viewer.