Ignore:
Timestamp:
Feb 6, 2008, 8:30:03 PM (14 years ago)
Author:
Peter
Message:

fixing #128 - iterators in Averger classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/PolynomialKernelFunction.cc

    r1000 r1043  
    5555  assert(x.size()==y.size());
    5656  statistics::AveragerPairWeighted averager;
    57   averager.add(x,y);
     57  add(averager, x.begin(),x.end(), y.begin());
    5858  if(order_>1)
    5959    return pow(1+averager.sum_xy(),order_);
     
    6767  assert(x.size()==y.size());
    6868  statistics::AveragerPairWeighted averager;
    69   averager.add(x,y);
     69  add(averager, x.begin(), x.end(),y.begin());
    7070  if(order_>1)
    7171    return pow(1+averager.sum_xy(),order_);
Note: See TracChangeset for help on using the changeset viewer.