||It has been suggested that Similarity matrix be merged into this article. (Discuss) Proposed since October 2013.|
In computer science, a similarity measure or similarity function is a real-valued function that quantifies the similarity between two objects. Although no single definition of a similarity measure exists, usually similarity measures are in some sense the inverse of distance metrics: they take on large values for similar objects and either zero or a negative value for very dissimilar objects. E.g., in the context of cluster analysis, Frey and Dueck suggest defining a similarity measure
In information retrieval, cosine similarity is a commonly used similarity measure, defined on vectors arising from the bag of words model. In machine learning, common kernel functions such as the RBF kernel can be viewed as similarity functions.
- F. Gregory Ashby; Daniel M. Ennis (2007). "Similarity measures". Scholarpedia 2 (12). doi:10.4249/scholarpedia.4116.
|This computer science article is a stub. You can help Wikipedia by expanding it.|