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]=GetEvenBinEdgesGlobal(sampleMat,nBinVect,NoDataCode,useVarVect,maxVect,minVect)
function [binEdges]=GetEvenBinEdgesGlobal(sampleMat,nBinVect,NoDataCode,useVarVect,maxVect,minVect)

[nData,nSignals]=size(sampleMat);
binMax=max(nBinVect);
binEdges=NaN(nSignals,binMax);
filteredMat=NaN(nData,nSignals);
%make nodata entries NaN, because min and max function ignores them...
for n=1:nData
    for s=1:nSignals
        if useVarVect(s) == 0   %check to see whether these vars are skipped
            continue
        end
        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
    if useVarVect(s) == 0   %check to see whether these vars are skipped
        continue
    end    
    for e=1:nBinVect(s)
        binEdges(s,e)=minVect(s)+((maxVect(s)-minVect(s))*e/nBinVect(s));
    end
end


Contact us