Ignore:
Timestamp:
Feb 26, 2008, 2:49:38 PM (14 years ago)
Author:
Markus Ringnér
Message:

Fixed #322

File:
1 edited

Legend:

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

    r1157 r1158  
    6363
    6464    ///
     65    /// @brief Constructor
     66    ///
     67    KNN(const Distance&);
     68
     69
     70    ///
    6571    /// @brief Destructor
    6672    ///
     
    141147  KNN<Distance, NeighborWeighting>::KNN()
    142148    : SupervisedClassifier(),data_(0),target_(0),k_(3)
     149  {
     150  }
     151
     152  template <typename Distance, typename NeighborWeighting>
     153  KNN<Distance, NeighborWeighting>::KNN(const Distance& dist)
     154    : SupervisedClassifier(),data_(0),target_(0),k_(3), distance_(dist)
    143155  {
    144156  }
Note: See TracChangeset for help on using the changeset viewer.