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

[binEdges,minEdge,maxEdge]=GetUniformBinEdges(sampleMat,nBinMat,NoDataCode)
function [binEdges,minEdge,maxEdge]=GetUniformBinEdges(sampleMat,nBinMat,NoDataCode)

[nData,nSignals]=size(sampleMat);
binMax=max(nBinMat);
binEdges=NaN(nSignals,binMax);
minEdge=NaN(nSignals,1);
maxEdge=NaN(nSignals,1);
filteredMat=NaN(nData,nSignals);
%make nodata entries NaN, because min and max function ignores them...
for n=1:nData
    for s=1:nSignals   
        if sampleMat(n,s)==NoDataCode
            filteredMat(n,s)=NaN;
        else
            filteredMat(n,s)=sampleMat(n,s);
        end
    end
end
%compute the bin edges using fractions of the min and max
for s=1:nSignals
    for e=1:nBinMat(s)
        minEdge(s)=min(filteredMat(:,s));
        maxEdge(s)=max(filteredMat(:,s));
        binEdges(s,e)=minEdge(s)+((maxEdge(s)-minEdge(s))*e/nBinMat(s));
    end
end

Contact us