lime/ToBeErased/FranckCondon/Gaussian.py
def gaussianGenerator(A, y, dX):
	""" y is the width of the peak at half height, A is the peak height,
		dX is the x location of the peak
	"""
	alpha = math.log(2)*8/(y**2)
	coef = A #*((alpha/math.pi)**0.25)
	return lambda x: coef*math.exp((-alpha*(x-dX)**2)/2)
 y is the width of the peak at half height, A is the peak height,
		dX is the x location of the peak
	
y is the width of the peak at half height, A is the peak height,
dX is the x location of the peak
y is the width of the peak at half height A is the peak height dX is the x location of the peak
def gaussianGenerator(A, y, dX):
	alpha = math.log(2)*8/(y**2)
	coef = A 
	return lambda x: coef*math.exp((-alpha*(x-dX)**2)/2)
def gaussianGenerator ( A , y , dX ) : alpha = math . log ( 2 ) * 8 / ( y ** 2 ) coef = A return lambda x : coef * math . exp ( ( - alpha * ( x - dX ) ** 2 ) / 2 )
y is the width of the peak at half height, A is the peak height,
dX is the x location of the peak
y is the width of the peak at half height A is the peak height dX is the x location of the peak
""" y is the width of the peak at half height, A is the peak height,
		dX is the x location of the peak
	""" #*((alpha/math.pi)**0.25)
A
y
dX