Ignore:
Timestamp:
Feb 1, 2008, 5:15:44 AM (14 years ago)
Author:
Peter
Message:

merging branch peter-dev into trunk delta 1008:994

File:
1 edited

Legend:

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

    r999 r1009  
    261261    for(size_t sample=0;sample<distances->columns();sample++) {
    262262      std::vector<size_t> k_index;
    263       utility::sort_smallest_index(k_index,k_,utility::vector(*distances,sample,false));
     263      utility::sort_smallest_index(k_index,k_,distances->column_vec(sample));
    264264      for(size_t j=0;j<k_index.size();j++) {
    265265        prediction(target_(k_index[j]),sample)++;
Note: See TracChangeset for help on using the changeset viewer.