Skip to content

Instantly share code, notes, and snippets.

@ninjakx
Created July 26, 2019 05:24
Show Gist options
  • Save ninjakx/1840cc6357b87013ca6320900c4c36eb to your computer and use it in GitHub Desktop.
Save ninjakx/1840cc6357b87013ca6320900c4c36eb to your computer and use it in GitHub Desktop.
/* 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