% p_MM_K( MM, K, Pmiss, false_alarm_rate) - compute P(MM|K)
%
function p = p_MM_K( MM, K, Pmiss, false_alarm_rate)

p = 0;

for j = max(0,MM-K):MM	% number of false alarms

  p = p + p_binomial( K, K+j-MM, Pmiss) * p_poisson( j, false_alarm_rate);

end
