Ignore:
Timestamp:
Jan 14, 2009, 4:42:57 PM (13 years ago)
Author:
Jari Häkkinen
Message:

Addresses #425. Improved docs. Fixed a bug in the normalization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/normalizer/qQuantileNormalizer.cc

    r1716 r1718  
    8282    : target_(Partitioner(target,Q))
    8383  {
     84    assert(Q>2); // required by cspline fit
    8485  }
    8586
     
    110111      for (size_t row=start; row<end; ++row) {
    111112        size_t srow=sorted_index[column][row];
    112         result(srow,column) = matrix(srow,column) + diff(0);
     113        result(srow,column) = matrix(srow,column) - diff(0);
    113114      }
    114115
     
    119120      for (size_t row=start; row<=end; ++row) {
    120121        size_t srow=sorted_index[column][row];
    121         result(srow,column) = matrix(srow,column) + cspline.evaluate(row) ;
     122        result(srow,column) = matrix(srow,column) - cspline.evaluate(row) ;
    122123      }
    123124
     
    128129      for (size_t row=start; row<end; ++row) {
    129130        size_t srow=sorted_index[column][row];
    130         result(srow,column) = matrix(srow,column) + diff(diff.size()-1);
     131        result(srow,column) = matrix(srow,column) - diff(diff.size()-1);
    131132      }
    132133    }
Note: See TracChangeset for help on using the changeset viewer.