A classifier based on distance between test samples and average patterns of categorical nearest neighbors | IEEE Conference Publication | IEEE Xplore