How to make a Gaussian Fit?

Carl phleum_nospam at chello.se
Sun Feb 8 03:31:11 EST 2004


Xcal wrote:

> Anyone knows how to make a Gaussian fit to a histogram data using Python,
> or where I can find a library that helps me in this task?
> 
> Tks everyone...
> 
> Paxcal

Install the Numeric module, then

>>> import MLab
>>> a = range(10)
>>> mean = MLab.mean(a)
4.5
>>> standard_deviation = MLab.std(a)
3.0276503540974917

Carl



More information about the Python-list mailing list