Changeset 956 for trunk/yat


Ignore:
Timestamp:
Oct 9, 2007, 3:03:22 PM (14 years ago)
Author:
Markus Ringnér
Message:

Bug fixing

Location:
trunk/yat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/NCC.h

    r948 r956  
    193193        class_averager.resize(target_.nof_classes());
    194194        for(size_t j=0; j<data_.columns(); j++) {
    195           class_averager[target_(j)].add((*weighted_data)(i,j),
     195          class_averager[target_(j)].add(weighted_data->data(i,j),
    196196                                         weighted_data->weight(i,j));
    197197        }
  • trunk/yat/statistics/vector_distance.h

    r937 r956  
    5858  }       
    5959
    60   /// A partial specialization for DataLookupWeighted1D
    61   template<typename Dist>
    62   double vector_distance(const classifier::DataLookupWeighted1D::const_iterator& beg1,const classifier::DataLookupWeighted1D::const_iterator& end1,const classifier::DataLookupWeighted1D::const_iterator& beg2)
    63   {
    64     return vector_distance(beg1,end1,beg2, typename statistics::vector_distance_traits<Dist>::distance());
    65   }
    66  
    67   /// A partial specialization for DataLookup1D
    68   template<typename Dist>
    69   double vector_distance(const classifier::DataLookup1D::const_iterator& beg1,const classifier::DataLookup1D::const_iterator& end1,const classifier::DataLookup1D::const_iterator& beg2)
    70   {
    71     return vector_distance(beg1,end1,beg2, typename statistics::vector_distance_traits<Dist>::distance());
    72   }
    73  
    7460}}} // of namespace statistics, yat, and theplu
    7561
Note: See TracChangeset for help on using the changeset viewer.