kNNmodel implementation, based on the paper
Guo, G., Wang, H., Bell, D., Bi, Y., & Greer, K. (2003, November). KNN model-based approach in classification. In OTM Confederated International Conferences, "On the Move to Meaningful Internet Systems" (pp. 986-996). Springer Berlin Heidelberg.
Results in example file, for datasets of iris and glass, do not match the results in the paper.
Most likely place of error, step 3-4, perhaps need to recalculate local neighborhoods.....