Borrar filtros
Borrar filtros

generating random numbers from poisson distribution

15 visualizaciones (últimos 30 días)
Takim Mustakim
Takim Mustakim el 30 de Mzo. de 2022
Editada: John D'Errico el 30 de Mzo. de 2022
how i can generate random numbers Poisson distribution pdf :
P(x) = e^(-λt).(λt)^x / x!

Respuesta aceptada

John D'Errico
John D'Errico el 30 de Mzo. de 2022
Editada: John D'Errico el 30 de Mzo. de 2022
Since the request has now morphed to do so without using poissrnd, that makes it very likely homework.
In that case, you might want to do some reading. For example, here:
If not, then you need to explain why you cannot use the idea shown there, or why you cannot use poissrnd.
help poissrnd
POISSRND Random arrays from the Poisson distribution. R = POISSRND(LAMBDA) returns an array of random numbers chosen from the Poisson distribution with parameter LAMBDA. The size of R is the size of LAMBDA. R = POISSRND(LAMBDA,M,N,...) or R = POISSRND(LAMBDA,[M,N,...]) returns an M-by-N-by-... array. See also POISSCDF, POISSINV, POISSPDF, POISSTAT, RANDOM. Documentation for poissrnd doc poissrnd

Más respuestas (1)

Paul
Paul el 30 de Mzo. de 2022
Check out
doc poissrnd
assuming that lamda*t in the question is the same as lamda in that function.

Productos


Versión

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by