Posted By

adkatrit on 02/11/11


Tagged

distribution Normal Gaussian


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

adkatrit


Gaussian


 / Published in: Python
 

  1. from math import e,pi
  2.  
  3. def gaussian(dist,sigma=10.0):
  4. exp=e**(-dist**2/(2*sigma**2)
  5. return (1/sigma*(2*pi)**.5))*exp

Report this snippet  

You need to login to post a comment.