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

classifySignal(sampleMat,binEdges,nBinMat,NoDataCode)
function [classifiedMat,nCounts] = classifySignal(sampleMat,binEdges,nBinMat,NoDataCode)

[nData,nSignals]=size(sampleMat);
classifiedMat=NaN(nData,nSignals);
nCounts=0;
for n=1:nData
    for s=1:nSignals
        classifiedMat(n,s)=nBinMat(s);
        for e=1:nBinMat(s)
            if sampleMat(n,s) == NoDataCode
                classifiedMat(n,s)=NoDataCode;
                break;
            elseif sampleMat(n,s)<= binEdges(s,e)
                classifiedMat(n,s)=e;
                nCounts=nCounts+1;
                break;
            end
        end
    end
end
nCounts=nCounts/nSignals;

Contact us