function P = BR_ind2cc(x)
%

n = length(x);
n2 = 2^n;

P = zeros(n2,1);

for c = 0:n2-1
    bits = BR_int2bits(c,n);
    v = 1;
    for p = 1:n
        if bits(p)==0
            v = v*(1-x(p));
        else
            v = v*x(p);
        end
    end
    P(c+1) = v;
end
