⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 entropy.m

📁 for entropy H = entropy(S) this command will evaluate the entropy of S, S should be row matrix
💻 M
字号:

function h = entropy(x,y)
%%%%%%%%%%%%%%%%%
% this file is created by Nashat Abughalieh
% if you used this in ur work please refere to me first
%%%%%%%%%%%%%%%%

if nargin < 2
    h = jentropy(x');
else 
    if size(y,1) == 1
        h = jentropy([x;y]') - jentropy(y');
    else
        h = entropy([x;y(1,:)],y(2:end,:)) - entropy(y(1,:),y(2:end,:));
    end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -