File: Knn.h

package info (click to toggle)
r-cran-ddalpha 1.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,636 kB
  • sloc: cpp: 3,455; fortran: 886; ansic: 155; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 894 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
  File:             Knn.h
  Created by:       Pavlo Mozharovskyi
  First published:  28.02.2013
  Last revised:     28.02.2013
  
  The realization of the KNN classifier.
*/

int GetK_JK_Binary(TMatrix points, TVariables cardinalities, unsigned int maxk);
int Knn_ClassifyOne_Binary(TPoint point, TMatrix points, 
						   TVariables cardinalities, unsigned int k);
int Knn_Classify_Binary(TMatrix objects, TMatrix points, 
						TVariables cardinalities, unsigned int k, TVariables *output);
int GetDDK_JK_Binary(TMatrix points, TVariables cardinalities, unsigned int maxk);
int DDKnn_ClassifyOne(TPoint point, TMatrix points, TVariables cardinalities, 
					  int k);
int KnnCv(TMatrix points, TVariables labels, unsigned int kMax, int distType, 
		  unsigned int numFolds);
int Knn(TMatrix objects, TMatrix points, TVariables labels, unsigned int k, 
		int distType, TVariables *output);