function [pff,pft,ptf,ptt] = BR_cond2tf(p,a,b)
%

ptf = p;
pft = 1 - ptt;
if b==0
    ptt = 0;
else
    ptt = (a-ptt*(1-b))/b;
end
pft = 1 - ptt;
if b==1
    pff = 0;
else
    pff = (1-(a+b-ptt*b))/(1-b);
end
