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

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