matlab代码,包含功能:计算互信息、香农熵、Renyi熵、条件熵、加权熵、加权互信息等。用法举例:
>> y = [1 1 1 0 0]';
>> x = [1 0 1 1 0]';
>> mi(x,y) %% mutual information I(X;Y)
>> h(x) %% entropy H(X)
>> condh(x,y) %% conditional entropy H(X|Y)
>> h( [x,y] ) %% joint entropy H(X,Y)
>> joint([x,y]) %% joint random variab
1