/ Published in: Python
Expand |
Embed | Plain Text
from math import e,pi def gaussian(dist,sigma=10.0): exp=e**(-dist**2/(2*sigma**2) return (1/sigma*(2*pi)**.5))*exp
You need to login to post a comment.
adkatrit on 02/11/11
1 person have marked this snippet as a favorite
from math import e,pi def gaussian(dist,sigma=10.0): exp=e**(-dist**2/(2*sigma**2) return (1/sigma*(2*pi)**.5))*exp
You need to login to post a comment.