Create functions for renyi & shannon entropy?

조회 수: 5 (최근 30일)
mohammed aljanabi
mohammed aljanabi 2016년 6월 14일
댓글: Mustefa Bedri 2021년 10월 17일
How to create a function for the Renyi and Shannon formulas?
RENYI=(1/1-alpha).* log2(sum(q .^alpha))
SHANNON=-(sum (q .* log2 (q)))
  댓글 수: 1
mohammed aljanabi
mohammed aljanabi 2016년 6월 14일
thanks for your reply I just want to create functions for these formulas then call it to my program and for alpha>=0 & alpha!= 1 to avoid zero and for q is probability between 0 and 1

댓글을 달려면 로그인하십시오.

채택된 답변

Alexander Andreychenko
Alexander Andreychenko 2016년 6월 14일
Could you please specify for what kind of distributions do you want to compute that (continuous, discrete)? What is the nature of the state space of the distributions? How do you treat possible 0 values in logarithm?
  댓글 수: 2
mohammed aljanabi
mohammed aljanabi 2016년 6월 14일
thanks for your reply I just want to create functions for these formulas then call it to my program and for alpha>=0 & alpha!= 1 to avoid zero and for q is probability between 0 and 1
Mustefa Bedri
Mustefa Bedri 2021년 10월 17일
Please Alexander Andreychenko i need your help on "entropy based spectrum sensing for cognitive radio network". please if you can help me i am doing my thesis on that.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by