Ignore:
Timestamp:
May 19, 2008, 11:36:49 PM (13 years ago)
Author:
Peter
Message:

fixed some docs and bugs for the unweighted operator refs #20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/WilcoxonFoldChange.cc

    r1275 r1315  
    4949    //Peter, should reserve the vector to avoid reallocations   
    5050    for (size_t i=0; i<target.size(); i++) {
    51       if (target(i)!=1) continue;
     51      if (target.binary(i)) continue;
    5252      for (size_t j=0; j<target.size(); j++) {
    53         if (target(j)==1) continue;
    54         distance.push_back(value(i)-value(j));
     53        if (!target.binary(j))
     54          distance.push_back(value(i)-value(j));
    5555      }
    5656    }
Note: See TracChangeset for help on using the changeset viewer.