Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7973251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:03:38+00:00 2026-06-04T08:03:38+00:00

Firstly my maths is limited, so this question may have a simple answer. So,

  • 0

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

enter image description here

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:03:39+00:00Added an answer on June 4, 2026 at 8:03 am

    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 properties

    from numpy import sqrt, log
    
    def sigma2Gamma(sigma):
        '''Function to convert standard deviation (sigma) to FWHM (Gamma)'''
        return sigma * sqrt(2 * log(2)) * 2 / sqrt(2)
    
    Gamma = sigma2Gamma(10)
    print Gamma
    # prints 16.651092223153956, which is what you saw in your graph
    
    def Gamma2sigma(Gamma):
        '''Function to convert FWHM (Gamma) to standard deviation (sigma)'''
        return Gamma * sqrt(2) / ( sqrt(2 * log(2)) * 2 )
    
    sigma = Gamma2sigma(10)
    print sigma
    # prints 6.0056120439322491, which is the standard deviation that will
    # give a FWHM of 10
    

    I would recommend changing your equation to

    height * np.exp( - ((x-mean)/Gamma2sigma(width))**2 )
    

    if you want to input the FWHM and not the standard deviation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly, I do not have any malicious intent out of this question. I would
Firstly: I am totally a newbie for this kind of work. I have a
Firstly, Modifying may be the wrong term, I see a few people have posted
Firstly, I'm not using rails. This is vanilla ruby application. I've read about packaging
Firstly, sorry about the question title, it may not be very descriptive for my
Firstly I realise that this is a familiar question, it seems to pop up
Firstly, I apologise if this is a dupe - I suspect it may be
Firstly - Z is Up in this problem. Context: Top down 2D Game using
Firstly I am using this for the ListView control itself: ItemsSource={Binding AllEffects} So would
Firstly, I want to restrict this question to web development only. So this is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.