function cc_probs = BR_ap2ccp(ap)
%

n = length(ap);
num_cc = 2^n;
cc_probs = zeros(1,num_cc);

for w = 0:num_cc-1
    bits = BR_int2bits(w,n);
    p = 1;
    for e = 1:n
        if bits(e)==0
            p = p*(1-ap(e));
        else
            p = p*ap(e);
        end
    end
    cc_probs(w+1) = p;
end
