How to identify the type of the Histogram?
Show older comments
Hi All,
I have medical images,I've plotted it's histograms,now I need to identify the type of these histograms(e.g. One may be like Gaussian distribution, Normal distribution.etce...),is there a builtin Matlab function or any code does that?thank All in advance for time and support.
1 Comment
Walter Roberson
on 16 Jan 2014
Duplicated by newer http://www.mathworks.co.uk/matlabcentral/answers/112617-how-to-identify-the-type-of-the-histogram-distribution which should be merged into this.
Answers (1)
Mischa Kim
on 16 Jan 2014
0 votes
12 Comments
hamed abdulaziz
on 16 Jan 2014
hamed abdulaziz
on 16 Jan 2014
Walter Roberson
on 16 Jan 2014
As Wayne King answered in your duplicate of the question, the solution for what you ask here is kstest as that tests whether the data comes from a normal (== Gaussian) distribution.
hamed abdulaziz
on 20 Jan 2014
hamed abdulaziz
on 20 Jan 2014
Walter Roberson
on 20 Jan 2014
h = kstest(counts1, 'CDF', test_cdf );
would return 1 if there is a 95% or greater likelyhood that the data came from the given cdf.
Note: When you wait 3 1/2 days to reply, it is not fair to expect the volunteers to reply within 1 hour. We cannot be checking every hour for days on end. We are still debating whether Wayne King or Image Analyst ever sleep, but we have it on good authority that they do stop to eat.
hamed abdulaziz
on 20 Jan 2014
Walter Roberson
on 20 Jan 2014
If h returns as 1, then the probability of a false match is less than 5%, so the probability of a correct match is at least 95% (not exactly 95%)
hamed abdulaziz
on 20 Jan 2014
hamed abdulaziz
on 20 Jan 2014
Walter Roberson
on 20 Jan 2014
imhist returns [counts, x] not [x, counts]
For a binary image (datatype logical) you would only have 2 bins, so you would be working out the probability that the two counts are consistent with a Gaussian distribution. With only two samples, the probability calculations are not statistically meaningful.
hamed abdulaziz
on 20 Jan 2014
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!