% File: poissonrecursion.m
% Date: 25-May-06
% Author: Scott Sewell

% Solves Bevington and Robinson's Poisson Distribution Function 
%   calculation, Equation 2.20 using a recursing relation.

function [y] = poissonrecursion(x,mu)
y(1)=exp(-mu)
for i = 1:x-1,
  y(i+1) = y(i)*mu/(i+1);
end
