how to find entropy of X.
Show older comments
how i implement this entropy formula(PNG file atached) in matlab code
my X is Column c in xlsx file(attached) i want to find for 1000 value
11 Comments
John D'Errico
on 22 Dec 2018
Edited: John D'Errico
on 22 Dec 2018
Why not just download the yalmip toolbox, which has entropy already implemented? Is here for download:
john karli
on 22 Dec 2018
Walter Roberson
on 23 Dec 2018
See the comments of
there is an implementation in the comments .
There is a function in the image processing toolbox for the greyscale image case.
john karli
on 23 Dec 2018
john karli
on 23 Dec 2018
Image Analyst
on 23 Dec 2018
log(0) is minus infinity, so n~= zero finds those bins where the value (number of counts in the histogram bin) is non-zero. So only those are passed into log2(), thus preventing a "-inf" result.
john karli
on 24 Dec 2018
Image Analyst
on 24 Dec 2018
What is that? Do you have a formula?
john karli
on 24 Dec 2018
john karli
on 24 Dec 2018
Accepted Answer
More Answers (0)
Categories
Find more on Image Arithmetic 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!