The kernel functions used in support vector machine classifiers also allow an interpretation as similarity measures; however, not all similarity measures can be used as kernels.
kernel functions must satisfy the mathematical property of positive semi-definiteness.