This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _discrete_distns / zipf_gen

class

scipy.stats._discrete_distns:zipf_gen

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_discrete_distns.py:1306

Signature

class zipf_gen(a = 0, b = inf, name = None, badvalue = None, moment_tol = 1e-08, values = None, inc = 1, longname = None, shapes = None, seed = None)

Members

Summary

A Zipf (Zeta) discrete random variable.

Extended Summary

%(before_notes)s

Notes

The probability mass function for zipf is:

for , .

zipf takes as shape parameter. is the Riemann zeta function (scipy.special.zeta)

The Zipf distribution is also known as the zeta distribution, which is a special case of the Zipfian distribution (zipfian).

%(after_notes)s

See also

zipfian

Aliases

  • scipy.stats._discrete_distns.zipf_gen