Ignore:
Timestamp:
Sep 5, 2006, 10:31:04 AM (15 years ago)
Author:
Peter
Message:

fixes #125 removing obsolete function and cleaning in Kernel classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/classifier/PolynomialKernelFunction.cc

    r627 r629  
    5151
    5252
    53 double PolynomialKernelFunction::operator()(const DataLookup1D& a1,
    54                                             const DataLookup1D& a2,
    55                                             const DataLookup1D& w1,
    56                                             const DataLookup1D& w2) const   
    57 {
    58   statistics::AveragerPairWeighted averager;
    59   for (size_t i=0; i<a1.size(); i++)
    60     averager.add(a1(i),a2(i),w1(i),w2(i));
    61 
    62   if(order_>1)
    63     return pow(1+averager.sum_xy(),order_);
    64   return averager.sum_xy();
    65 }
    66 
    6753}} // of namespace cpptools and namespace theplu
Note: See TracChangeset for help on using the changeset viewer.