[Numpy-discussion] Using normal()

Joris De Ridder Joris.DeRidder at ster.kuleuven.be
Thu Apr 24 14:16:48 EDT 2008


On 24 Apr 2008, at 19:26, Rich Shepard wrote:

>> norm = 1 / (scale * sqrt(2 * pi))
>> y = norm * exp(-power((x - loc), 2) / (2 * scale**2))
>
>   Can do. So, scale would equate to width and loc to center, yes?

Scale is half the width between the inflection points, mind the factor  
of 2.

J.


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm




More information about the NumPy-Discussion mailing list