Skip to content
Snippets Groups Projects
Commit c1c51f15 authored by Jakhes's avatar Jakhes
Browse files

Fix problem in ApproxKNF

parent 33ed7ef1
Branches
No related tags found
No related merge requests found
...@@ -17,9 +17,10 @@ using namespace std; ...@@ -17,9 +17,10 @@ using namespace std;
using namespace mlpack::neighbor; using namespace mlpack::neighbor;
// Global Variable of the DrusillaSelect object so it can be accessed from all functions // Global Variable of the DrusillaSelect object so it can be accessed from all functions
DrusillaSelect drusillaSelect; DrusillaSelect<mat> drusillaSelect = DrusillaSelect(0,0);
// Global Variable of the QDAFN object so it can be accessed from all functions // Global Variable of the QDAFN object so it can be accessed from all functions
QDAFN qdafn; QDAFN<mat> qdafn = QDAFN(0,0);
// TODO: // TODO:
// input: const size_t l, // input: const size_t l,
...@@ -61,7 +62,7 @@ void searchDrusilla(float *querySetMatArr, SP_integer querySetMatSize, SP_intege ...@@ -61,7 +62,7 @@ void searchDrusilla(float *querySetMatArr, SP_integer querySetMatSize, SP_intege
mat querySet = convertArrayToMat(querySetMatArr, querySetMatSize, querySetMatRowNum); mat querySet = convertArrayToMat(querySetMatArr, querySetMatSize, querySetMatRowNum);
// create the ReturnMat // create the ReturnMat
mat neighborsReturnMat; Mat< size_t> neighborsReturnMat;
// create the ReturnMat // create the ReturnMat
mat distancesReturnMat; mat distancesReturnMat;
...@@ -138,7 +139,7 @@ void searchQDAFN(float *querySetMatArr, SP_integer querySetMatSize, SP_integer q ...@@ -138,7 +139,7 @@ void searchQDAFN(float *querySetMatArr, SP_integer querySetMatSize, SP_integer q
mat querySet = convertArrayToMat(querySetMatArr, querySetMatSize, querySetMatRowNum); mat querySet = convertArrayToMat(querySetMatArr, querySetMatSize, querySetMatRowNum);
// create the ReturnMat // create the ReturnMat
mat neighborsReturnMat; Mat< size_t > neighborsReturnMat;
// create the ReturnMat // create the ReturnMat
mat distancesReturnMat; mat distancesReturnMat;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment