Zipf distribution on matlab

8 次查看(过去 30 天)
Wasseem Suhabuth
Wasseem Suhabuth 2016-8-31
How to make zipf distribution on matlab please. Any coding

回答(1 个)

Star Strider
Star Strider 2016-8-31
It’s easy enough to code:
zipfpdf = @(x,rho) x.^(-(rho + 1)) ./ zeta(rho + 1);
See the discussion on Wolfram MathWorld for the Zipf Distribution for a full discussion and an expression for the cumulative distribution function and moments.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by