power law distribution, How could I generate random variables from the truncated power -law distribution and its PDf?
6 views (last 30 days)
Show older comments
amberly hadden
on 6 Oct 2014
Commented: Image Analyst
on 9 Oct 2014
How could I generate random variables from the truncated power -law distribution and its PDf?
0 Comments
Accepted Answer
Image Analyst
on 6 Oct 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 Comments
Image Analyst
on 9 Oct 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.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!