I want to generate a stream of 15 numbers which follow a particular distribution with a mean and variance , how can i do that
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Suman Maiti
el 6 de Feb. de 2022
Respondida: Image Analyst
el 6 de Feb. de 2022
I want to generate a stream of 15 numbers which follow a particular distribution with a mean and variance , how can i do that
0 comentarios
Respuesta aceptada
Image Analyst
el 6 de Feb. de 2022
What is the distribution? If it's normal, you can simply use randn(). If it's a different one, you can use random(), which has a bunch more named, standard distributions. If it's some custom distribution, you can use "Inverse Transform Sampling" like in my attached demo where I get samples from a Rayleigh distribution.
0 comentarios
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!