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/WeNNI.cc

    r687 r759  
    5353  {
    5454    for (unsigned int i=0; i<data_.rows(); i++) {
    55       // Jari, avoid copying in next line
    5655      std::vector<std::pair<u_int,double> > distance=calculate_distances(i);
    5756      std::sort(distance.begin(),distance.end(),
     
    6463        for (std::vector<u_int>::const_iterator k=knn.begin(); k!=knn.end();
    6564             ++k) {
    66           // Jari, a small number needed here, use something standardized.
    6765          // Avoid division with zero (perfect match vectors)
    6866          double d=(distance[*k].second ? distance[*k].second : 1e-10);
Note: See TracChangeset for help on using the changeset viewer.