Calculating the Gain

Calculating Homogeneity