Calculates objective function for individual i and group k in order to estimate group membership.
Useful links