Match
esc.commons.Match
case class Match(nofHits: Int, nofHitsWeighted: Double, cov: Double, covWeighted: Double, similarity: Double, matchPairs: List[(String, String, Double, String)])
Class that provides various key figures for a comparison. This class would be used by the NameSimilarity class. You can only consume them as a result.
Value parameters
- cov
-
Coverage. Number of hits in relation to the longer name.
- covWeighted
-
Coverage. Number of hits weighted in relation to the longer name, but weighted number of name elements.
- matchPairs
-
A list that contains all pairs of name elements that were recognized as hits.
- nofHits
-
Number of hits, count of matching name elements.
- nofHitsWeighted
-
Number of hits, count of matching name elements, but weighted. Some matches has a lower weight than 1.
- similarity
-
Depending on the ratio of the length - nofHits the similarity is calculated as follows: covW + ((1-covW)/x
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article