Created
July 26, 2019 05:24
-
-
Save ninjakx/1840cc6357b87013ca6320900c4c36eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File knn.h */ | |
#ifndef KNN_H | |
#define KNN_H | |
#include <stdio.h> | |
#include <vector> | |
#include <map> | |
/* Define function prototype */ | |
std::map<int,std::vector<int> > distance_knn(const double* array,int m, int n); | |
std::vector<int> argsort(double* input_list, int length); | |
double edist(double* arr1, double* arr2, int n); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment