Code covered by the BSD License  

Highlights from
ProcessNetwork Version 1.0 Software

image thumbnail

ProcessNetwork Version 1.0 Software

by

 

Functions for the delineation of Dynamical Process Networks using Information Theory

GetShannonBits(C,nCounts)
function [HXt,HYw,HYf,HXtYw,HXtYf,HYwYf,HXtYwYf] = GetShannonBits(C,nCounts)

%Get Marginal and Joint Shannon Entropies in terms of bits (log 2), given probability matrices

pXtYwYf=(C+eps)/nCounts;
pXt=sum(sum(pXtYwYf,2),3);
pYw=sum(sum(pXtYwYf,1),3);
pYf=sum(sum(pXtYwYf,1),2);
pXtYw=sum(pXtYwYf,3);
pXtYf=sum(pXtYwYf,2);
pYwYf=sum(pXtYwYf,1);

HXt=-sum(pXt.*log2(pXt));
HYw=-sum(pYw.*log2(pYw));
HYf=-sum(pYf.*log2(pYf));
HXtYw=-sum(sum(pXtYw.*log2(pXtYw)));
HXtYf=-sum(sum(pXtYf.*log2(pXtYf)));
HYwYf=-sum(sum(pYwYf.*log2(pYwYf)));
HXtYwYf=-sum(sum(sum(pXtYwYf.*log2(pXtYwYf))));

end

Contact us