Ignore:
Timestamp:
Mar 5, 2007, 7:58:30 PM (15 years ago)
Author:
Peter
Message:

Refs #101

File:
1 edited

Legend:

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

    r720 r779  
    7878
    7979
     80  double sum_weight(const DataLookupWeighted1D& x)
     81  {
     82    double r=0;
     83    for (size_t i=0; i<x.size(); ++i)
     84      r += x.weight(i);
     85    return r;
     86  }
     87
     88
    8089  double DataLookupWeighted1D::weight(const size_t i) const
    8190  {
Note: See TracChangeset for help on using the changeset viewer.