我是靠谱客的博主 失眠可乐,这篇文章主要介绍matlab 条件计数,matlab计算离散变量的条件熵,考虑到其他离散变量,现在分享给大家,希望可以做个参考。

Conditional Entropy

ConditionalEntropy: Calculates conditional entropy (in bits) of Y, given X

H = ConditionalEntropy(Y,X)

H = calculated entropy of Y, given X (in bits)

Y = dependent variable (column vector)

X = independent variable(s)

Note 1: Each distinct value is considered a unique symbol.

Note 2: requires 'Entropy' and 'MutualInformation' functions

Example: 'X' (1 bit of entropy), 'Y' (2 bits of entropy)

Given 'X', 'Y's conditional entropy is 1 bit.

Note: Estimated entropy values are slightly less than true, due to finite sample size.

Y = ceil(4 * rand(1e3,1)); X = double(Y <= 2);

ConditionalEntropy(Y,X)

最后

以上就是失眠可乐最近收集整理的关于matlab 条件计数,matlab计算离散变量的条件熵,考虑到其他离散变量的全部内容,更多相关matlab内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(67)

评论列表共有 0 条评论

立即
投稿
返回
顶部