function y = ikn(P,k) % IKN y = ikn(P,k) Individual probabilities of k of n successes % Version of 5/15/95 % Uses the m-functions mintable, minprob, csort n = length(P); T = sum(mintable(n)); % The number of successes in each minterm pm = minprob(P); % The probability of each minterm [t,p] = csort(T,pm); % Sorts and consolidates success numbers % and adds corresponding probabilities y = p(k+1);