Borrar filtros
Borrar filtros

power law distribution, How could I generate random variables from the truncated power -law distribution and its PDf?

3 visualizaciones (últimos 30 días)
How could I generate random variables from the truncated power -law distribution and its PDf?

Respuesta aceptada

Image Analyst
Image Analyst el 6 de Oct. de 2014
You need to use inverse transform sampling. I attached a demo where I use it to get random numbers from a Rayleigh distribution.
  11 comentarios
amberly hadden
amberly hadden el 9 de Oct. de 2014
Hi Thanks,
It turns out if I have to use your inverse transformation then I need to integrate PDF to get CDF and then I can consider CDF as uniform number apply your technique. Thanks for this code it solved my problem.
Regards Jay
Image Analyst
Image Analyst el 9 de Oct. de 2014
You're welcome. Since I solved your problem, could you go ahead and mark the Answer as "Accepted" so I get credit for it? Thanks in advance.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Electrical Block Libraries en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by