I am designing a matching system and want to compute the similarity between pairs of numbers. So let us assume we have two set of numbers:
15 13 17 100
1 14 15 105 27 30
I would now like to compute the similarity between a) these two set of numbers AND b) between each and every number (so for example sim(15,1), sim(13,1), etc.) that return me a similarity value between 0 and 1.
My question now is if there exist similarity measures in literature for this task. If there is even a java implementation for them I would appreciate this even more.
UPDATE:
There exist a large amount of measures for String similarity (e.g. Levenshtein measure), but I could not find something equivalent for numbers.
The goal is to use this in a matching system which should return the similarity of two database rows between 0 and 1.
Thank you in advance!