function graphPG(mu)
% Plots the Poisson and Gaussian distributions with a mean mu.
sigma = sqrt(mu);
k = round(mu-3*sigma):round(mu+3*sigma);
k = k(k>-1);

plot(k,poisspdf(k,mu),'r',k,sqrt(1/(2*pi*mu))*exp(-(1/(2*mu))*(k-mu).^2));
legend({'poisson','guassian'},'interpreter','latex')
texText('$k$','x')
texText('$P_k$','y')
end