Frequency Calculation Gaussian Function