This function returns the similarity of two numbers following
the McSherry - Less is Better formulae
sim(c.a,q.a)= (max(a) - c.a) / (max(a)-min(a))
min(a) and max(a) must be defined by the designer. q.a is not taken into account.
This function returns the similarity of two numbers following
the McSherry - More is Better formulae
sim(c.a,q.a)= 1 - ((max(a) - c.a) / (max(a)-min(a)))
min(a) and max(a) must be defined by the designer. q.a is not taken into account.