Changeset 1617 for trunk/yat


Ignore:
Timestamp:
Nov 6, 2008, 2:28:02 PM (12 years ago)
Author:
Peter
Message:

refs #457 - adding a test with two samples and avoid shadowing variables

File:
1 edited

Legend:

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

    r1612 r1617  
    8989      std::deque<bool>::const_iterator target_i(targets.begin());
    9090      const_iter end(data_.end());
    91       for (const_iter i(data_.begin()); i!=end; ++i, ++target_i)
    92         ks.add(i->first.first, *target_i, i->first.second);
     91      for (const_iter iter(data_.begin()); iter!=end; ++iter, ++target_i)
     92        ks.add(iter->first.first, *target_i, iter->first.second);
    9393     
    9494      if (ks.score()>=score())
Note: See TracChangeset for help on using the changeset viewer.