Zipf distribution on matlab

6 visualizaciones (últimos 30 días)
Wasseem Suhabuth
Wasseem Suhabuth el 31 de Ag. de 2016
Respondida: Star Strider el 31 de Ag. de 2016
How to make zipf distribution on matlab please. Any coding

Respuestas (1)

Star Strider
Star Strider el 31 de Ag. de 2016
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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by