How to calculate entropy for 1D?

2 ビュー (過去 30 日間)
nur aqila
nur aqila 2018 年 4 月 20 日
コメント済み: nur aqila 2018 年 4 月 20 日
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

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 4 月 20 日
編集済み: KALYAN ACHARJYA 2018 年 4 月 20 日
 % Not for logical data
% Entropy calculation is only for gray or other formats
en=entropy(I);
  1 件のコメント
nur aqila
nur aqila 2018 年 4 月 20 日
is that means it is impossible for me to calculate entropy for my data ?

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by