I'm wondering since few years what its origin is. The adjective affinis means neighbouring, allied to, kindred and the noun derived from it affinitas means relationship, connection, union, affinity. I'd appreciate all kind of information, but I'm looking especially for some literature about the etymology of this term.
Thanks in advance.
This Wikipedia article provides some historical background: