How to calculate entropy for 1D?

1 Ansicht (letzte 30 Tage)
nur aqila
nur aqila am 20 Apr. 2018
Kommentiert: nur aqila am 20 Apr. 2018
Hi, I have 1D data which I got after encoding an image, the data only have value 0 and 1. How can I calculate the entropy of the resulted 1D data? please help me

Antworten (1)

KALYAN ACHARJYA
KALYAN ACHARJYA am 20 Apr. 2018
Bearbeitet: KALYAN ACHARJYA am 20 Apr. 2018
 % Not for logical data
% Entropy calculation is only for gray or other formats
en=entropy(I);
  1 Kommentar
nur aqila
nur aqila am 20 Apr. 2018
is that means it is impossible for me to calculate entropy for my data ?

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by