Ignore:
Timestamp:
Feb 25, 2008, 9:23:47 PM (14 years ago)
Author:
Peter
Message:

fixes #292

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/ROC.h

    r1141 r1145  
    150150  };
    151151
    152   /**
    153      Add a range [first, last) of values to ROC. The first last-first
    154      elements in Target.binary are used.
    155    */
    156   template<typename ForwardIterator>
    157   void add(ROC& roc,
    158            ForwardIterator first, ForwardIterator last,
    159            const classifier::Target& target)
    160   {
    161     for (size_t i=0; first!=last; ++i, ++first)
    162       roc.add(utility::iterator_traits<ForwardIterator>().data(),
    163               target.binary(i),
    164               utility::iterator_traits<ForwardIterator>().weight());
    165   }
    166152}}} // of namespace statistics, yat, and theplu
    167153
Note: See TracChangeset for help on using the changeset viewer.