[pstricks] poisson-distribution

azzam.hassan at voila.fr azzam.hassan at voila.fr
Fri Nov 10 20:41:44 CET 2006


Thanks a lot
it works very well


> Message du 10/11/06 à 19h29
> De : "Herbert Voss" <LaTeX at zedat.fu-berlin.de>
> A : "Graphics with PSTricks" <pstricks at tug.org>
> Copie à : 
> Objet : Re: [pstricks] poisson-distribution
> 
> azzam.hassan at voila.fr schrieb:
> 
> > Is there any way to obtain the Poisson distribution
> 
> with the pst-func.tex from http://perce.de/LaTeX/pst-func/
> It is an undocumented feature, because I do not really
> know if the macro works in the right way. Parameters are
> N and lambda and all the others are the same as for the
> distribution macros (see documentation).
> 
> Herbert
> 
> \documentclass[a4paper,12pt]{article}
> \usepackage{pst-func}
> \pagestyle{empty}
> \begin{document}
> 
> \psset{xunit=1cm,yunit=20cm}%
> \begin{pspicture}(-1,-0.05)(14,0.25)%
> \uput[-90](14,0){$k$} \uput[90](0,0.2){$P(X=k)$}
> \psPoisson[linecolor=red,markZeros,fillstyle=solid,
>   fillcolor=blue!10,printValue,valuewidth=20]{13}{6} % {N}{lambda}
> \psaxes[Dy=0.1,dy=0.1\psyunit]{->}(0,0)(-1,0)(14,0.2)
> \end{pspicture}
> 
> \vspace{1cm}
> The Possion distribution:
> 
> \[ P_\lambda(X=k)=\frac{\lambda^k}{k!}\,e^{-\lambda} \]
> 
> \end{document}
> 
> >
> [ poisson.png (28.5 Ko) ]
> [ (pas de nom de fichier) (0.1 Ko) ]


Amicalement
Azzam HASSAN
tel : 06 63 82 97 09





More information about the PSTricks mailing list