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

Alan G Isaac aisaac@american....
Fri Apr 25 08:50:20 CDT 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