Firstly my maths is limited, so this question may have a simple answer. So, I am using the following equation to make guassian distributions:
height * np.exp( - ((x-mean)/width)**2 )
When I make gussians with the above equation where is the width of the peak applied? Is it at full width half maximum? I made the following gaussian with the following values:
height = 5
mean = 100
width = 10

When I then calculate the FWHM it is 16.6510941453 so the peak width cannot be applied at the FWHM. Where is it applied?
I am trying to constrain the FWHM so the FWHM is 10x smaller than that of the mean. So in the above example I would of liked the gaussian to have a FWHM of 10 at the mean of 100 at a peak height of 5.
In your equation, the width parameter is actually
sigma, which is the standard deviation of a Gaussian, not FWHM. Below are functions to convert between the two of these propertiesI would recommend changing your equation to
if you want to input the FWHM and not the standard deviation