Use the square of the values when calculating the density gain