KNN c++ implemenation still uses old style structures (Feature #265)


Added by Gijs Molenaar almost 15 years ago. Updated over 14 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:- % Done:

0%

Category:ml
Target version:-
Difficulty: Pull request:

Description

The C++ implementation of KNN still uses old style structures like CvMat.


Associated revisions

Revision 46cf2e96
Added by Vadim Pisarevsky about 12 years ago

Merge pull request #265 from taka-no-me:doc_signatures

History

Updated by Maria Dimashova over 14 years ago

In current revision 3904 there are methods of CvKNearest class that used Mat:

CvKNearest( const Mat& trainData, const Mat& responses, const Mat& sampleIdx=Mat(), bool isRegression=false, int max_k=32 );

bool train( const Mat& trainData, const Mat& responses, const Mat& sampleIdx=Mat(), bool isRegression=false, int maxK=32, bool updateBase=false );

float find_nearest( const Mat& samples, int k, Mat* results=0, const float** neighbors=0, Mat* neighborResponses=0, Mat* dist=0 ) const;
float find_nearest( const Mat& samples, int k, Mat& results, Mat& neighborResponses, Mat& dists) const;

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF