based on distances between the pattern to be recognised and training or reference patterns