p.compute function

computes the probability vector using logistic coefficients