This is an algorithm for classifying objects when they satisfy the kNN property

A distance function is used to generate distances, typically Euclidian.