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 / _continuous_distns / powerlaw_gen

class

scipy.stats._continuous_distns:powerlaw_gen

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

Signature

class powerlaw_gen(momtype = 1, a = None, b = None, xtol = 1e-14, badvalue = None, name = None, longname = None, shapes = None, seed = None)

Members

Summary

A power-function continuous random variable.

Extended Summary

%(before_notes)s

Notes

The probability density function for powerlaw is:

for , .

powerlaw takes a as a shape parameter for .

%(after_notes)s

For example, the support of powerlaw can be adjusted from the default interval [0, 1] to the interval [c, c+d] by setting loc=c and scale=d. For a power-law distribution with infinite support, see pareto. For a power-law distribution described by PDF:

with and , see truncpareto.

powerlaw is a special case of beta with b=1.

%(example)s

See also

pareto

Aliases

  • scipy.stats._continuous_distns.powerlaw_gen