Changeset 1731


Ignore:
Timestamp:
Jan 16, 2009, 3:50:15 PM (12 years ago)
Author:
Jari Häkkinen
Message:

Addresses #425. 'make check' passes now, but there is still a problem with the partitioner.

File:
1 edited

Legend:

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

    r1718 r1731  
    109109      size_t start=0;
    110110      size_t end=static_cast<unsigned int>(idx(0));
     111      if (end<idx(0))
     112        ++end;
    111113      for (size_t row=start; row<end; ++row) {
    112114        size_t srow=sorted_index[column][row];
     
    116118      // cspline interpolation for all data between the first and last
    117119      // parts
    118       start=static_cast<unsigned int>(idx(0));
     120      start=end;
    119121      end=static_cast<unsigned int>(idx(target_.size()-1));
    120122      for (size_t row=start; row<=end; ++row) {
     
    125127      // linear interpolation for last part, i.e., use last diff for
    126128      // all points in the last part.
    127       start=static_cast<unsigned int>(idx(target_.size()-1)+1);
     129      start=end+1;
    128130      end=result.rows();
    129131      for (size_t row=start; row<end; ++row) {
Note: See TracChangeset for help on using the changeset viewer.