This is a supervised classification method as a set of training samples
(patterns of known classes) is assumed to be available for all c classes:
The classification is directly based on these training samples with no further training needed.
First define the nearest neighbor distance between an input pattern
to be classified and a class represented by its training samples as
Since this method depends highly on individual training samples, it is sensitive to noise.