Create functions for renyi & shannon entropy?

5 次查看(过去 30 天)
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
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 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by