astrochun / Evolution-of-Galaxies

Research with Dr. Chun Ly. I am working with a sample of ~4000 galaxies from the MACT and DEEP2 surveys. The goal is to determine a robust M-Z-SFR relation for galaxies at z<1 and examine its evolution over the past 8 billion years of cosmic time.
2 stars 0 forks source link

Fix mistake in emission_line_fit.gauss() function with sigma parameter #6

Closed astrochun closed 4 years ago

astrochun commented 4 years ago

@cmccormick1 found a bug. There's a factor of 2 missing in the denominator of the exponential function in gauss()

We have:

def gauss(x, xbar, s, a, c):
     return a * np.exp(-(x - xbar)**2 / s**2) + c

This should be:

def gauss(x, xbar, s, a, c):
     return a * np.exp(-(x - xbar)**2 /  (2 * s**2)) + c