"Jamal Mohamed" <in.jamal@yahoo.com> wrote in message
news:hd8m1p$rqq$1@fred.mathworks.com...
> Hi
> How to fit normal(or any) distribution to histogram based its mode(peak)
> for image data ?
normal dist. requires 2 parameters. mean and variance (or standard
deviation). can't just use the peak. If you have the data itself (the sample
from which you got the histogram from) then you can easily estimate these
from the sample data.
If you just have the plot itself, then you can find the mean (where the peak
is), for variance, find the area around the mean which is about 68% of total
area, this gives you 2 standard deviations as measured on the x-axis under
this area. But I am no expert on this so I could be off here.
(there is a statistic newgroup group btw).
--Nasser
Subject: How to fit normal distribution to histogram
"Jamal Mohamed" <in.jamal@yahoo.com> wrote in message <hd8m1p$rqq$1@fred.mathworks.com>...
> Hi
> How to fit normal(or any) distribution to histogram based its mode(peak) for image data ?
Subject: How to fit normal distribution to histogram
"Frederic Moisy" <moisy@fast.u-psud.fr> wrote in message <hd8p7j$3hb$1@fred.mathworks.com>...
> Once the histogram of the image data is plotted, one easy way
> to fit a normal distribution or other is to use the Ezyfit toolbox,
> http://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-30
> Have a look to the example file
> http://www.mathworks.com/matlabcentral/fx_files/10176/3/content/ezyfit/demo/html/efdemo.html
> in which a normal fit is illustrated.
> Frederic
>
>
> "Jamal Mohamed" <in.jamal@yahoo.com> wrote in message <hd8m1p$rqq$1@fred.mathworks.com>...
> > Hi
> > How to fit normal(or any) distribution to histogram based its mode(peak) for image data ?
If you have the statistics toolbox, there is also a histfit() function which provides density fits for a number of distributions.
Wayne
Tags for this Thread
Add a New Tag:
Separated by commas
Ex.: root locus, bode
What are tags?
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.