Ignore:
Timestamp:
Mar 17, 2013, 6:53:07 AM (9 years ago)
Author:
Peter
Message:

fixes bug in KolmogorovSmirnov::remove. closes #753.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.10-stable/yat/statistics/KolmogorovSmirnov.cc

    r2997 r3000  
    113113      return;
    114114    Element e(value, class_label, weight);
    115     typedef std::multiset<Element>::const_iterator iterator;
     115    typedef std::multiset<Element>::iterator iterator;
    116116    std::pair<iterator, iterator> iter = data_.equal_range(e);
    117117    while (iter.first!=iter.second) {
     
    121121        else
    122122          sum_w2_-=weight;
     123        data_.erase(iter.first);
    123124        cached_=false;
    124125        return;
Note: See TracChangeset for help on using the changeset viewer.