Ignore:
Timestamp:
Feb 19, 2007, 8:41:25 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #171 and addresses #2. A few more GSL_error exceptions. Removed Jari comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/kNNI.cc

    r687 r759  
    5858  {
    5959    for (unsigned int i=0; i<mv_rows_.size(); i++) {
    60       // Jari, avoid copying in next line
    6160      std::vector<std::pair<u_int,double> > distance=
    6261        calculate_distances(mv_rows_[i]);
     
    7069          for (std::vector<u_int>::const_iterator k=knn.begin(); k!=knn.end();
    7170               ++k) {
    72             // Jari, a small number needed here, use something standardized.
    7371            // Avoid division with zero (perfect match vectors)
    7472            double d=(distance[*k].second ? distance[*k].second : 1e-10);
Note: See TracChangeset for help on using the changeset viewer.