473,405 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to make a Gaussian Fit?

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
Jul 18 '05 #1
4 8826

"Xcal" <pa******@sapo.pt> wrote in message
news:40***********************@news.telepac.pt...
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?


The standard way to fit Guassian distributions to data is to match mean and
standard deviation. Take a look in some statistics texts.

TJR


Jul 18 '05 #2
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
Jul 18 '05 #3
Xcal wrote:
Anyone knows how to make a Gaussian fit [...]


Put it on a mean exercise program and don't allow any deviation.
Jul 18 '05 #4
"Xcal" <pa******@sapo.pt> wrote in message news:<40***********************@news.telepac.pt>.. .
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?


This is a special case of non-linear fitting, which you can do with
the modules in ScientificPython. See
http://starship.python.net/~hinsen/ScientificPython/

Here is an extract from the relevant docs...

-----------------------------------------------------------------------
Module Scientific.Functions.LeastSquares
Functions

* leastSquaresFit()

General non-linear least-squares fit using the
Levenberg-Marquardt algorithm and automatic derivatives.
....
-----------------------------------------------------------------------

Cheers

Will
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: GBartgo | last post by:
Is there someone who knows how to generate a gaussian mixture in c++?
28
by: Steven Bethard | last post by:
Ok, I finally have a PEP number. Here's the most updated version of the "make" statement PEP. I'll be posting it shortly to python-dev. Thanks again for the previous discussion and suggestions!...
1
by: j.f.c.neves | last post by:
Hello, I need some help in using the rlft3 (Numerical Recipes in c++ book, Chapter 12) to apply a Gaussian smoothing to a 2D image. How do I create a suitable filter function (page 535)? ...
3
by: bob | last post by:
I was wondering if anyone can recommend a way to generate a Gaussian random variable with standard deviation 1. Thank you.
1
by: olorunfunmi | last post by:
hello guys, i'm in dire need of algorithms and c programs for cramer's rule and gaussian elimination. the ones i've been getting seemm toooooo complex
3
by: olorunfunmi | last post by:
hello there, pls i need help with the algoritm and c program for gaussian elimination and cramer's rule (linear algebra).all the ones i've come across are quite confusing.thanks
1
by: sandra19701 | last post by:
Hello, Would anybody have access to C/C++ source code for solving an underdetermined system using gaussian elimination?I dont want to use MATLAB. Thanks!
2
by: Gerdus van Zyl | last post by:
Does anyone have a relatively fast gaussian blur implemented in pure python? Below is my attempt but it takes 2.9 seconds for a 320x240 image. Image comes from byte string: self.array =...
2
by: Mesvak | last post by:
Hi Does anyone know the algorithm or have a source code for applying Additive white gaussian noise? thanx very much -M-
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.