Implementation of a feature weighted k-nearest neighbour classifier.
weightedKNN(train.mat, test.mat, cl, k = 3, weights)training data matrix, without class labels.
test data matrix, without class labels.
class labels for training data.
number of nearest neighbour to be used.
weights to be assigned to each feautre.