Generating 0 and 1 from Poisson Distribution
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Syed Ghazi Sarwat
el 20 de Mzo. de 2020
Editada: Syed Ghazi Sarwat
el 9 de Abr. de 2020
I am trying to create N vectors of dimension (1,M) that comprise only 0 and 1, picked from some Poisson distribution with mean lambda. I then want to correlate the 1's between the vectors with some correlation coefficeint ? Any suggestions how I can do this ? Thanks in advance
0 comentarios
Respuesta aceptada
Samatha Aleti
el 24 de Mzo. de 2020
You may generate 0,1 from Poisson Distribution using “poissrnd” function as follows:
M = 10;
poissrnd(0.25,1,M)
Refer the following link for documentation of “poissrnd” :
1 comentario
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!