calculate compound similarity