https://github.com/SBIUCD/BDiffProt
Raw File
Tip revision: d08cfc4340c37feac5601cf801a5268ea088203d authored by SBIUCD on 12 May 2016, 10:42:40 UTC
Create README.txt
Tip revision: d08cfc4
calcProbs.m
function [D1] = calcProbs(D)
%
m=min([D.PO1;D.PO0]);

D.PO1=exp(D.PO1-m);
D.PO0=exp(D.PO0-m);
s=D.PO1+D.PO0;
D1.PO1=D.PO1./(s);
D1.PO0=D.PO0./(s);

end

back to top