Cost functions for the similarity metrics within the SimMetrics similarity equivalence library.