Function calculateGaussian2DHeight