thatguy2048

thatguy2048 / SimpleKNN / 0.1.0

README.md
This is a simple KNN classifier which accepts a given number of training data points, classes for those points and sample points to evaluate.

Inputs:
int k - the number of points to be counted, default 5
String distanceCalculation - the distance calculation to use, currently only supports "squaredEuclidean" which is the default.
String votingType - the way to calculate the class given the classes of the K closest points, currently only supports "majority" voting, which is the default.
ArrayList<double[]> data - the training data
int[] classes - the class for each data points
ArrayList<double[]> points - the sample points