Update Gaussian equation. Added an offset parameter to extend its functionality when using this function for parameter spatialization.