[Numpy-discussion] Generating Bell Curves (was: Using normal() )

Alan G Isaac aisaac at american.edu
Fri Apr 25 09:50:20 EDT 2008


On Fri, 25 Apr 2008, Rich Shepard apparently wrote:
> bell curves that reach y=0.0 at the ends. 

Just change the function you are graphing.

def bell(x, xmin, xmax):
        if xmin < x < xmax:
                return density(x)
        return 0

Here ``density`` is whatever function you are
currently using to produce the dependent variable.

hth,
Alan






More information about the NumPy-Discussion mailing list