{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _continuous_distns / powerlaw_gen

class

scipy.stats._continuous_distns:powerlaw_gen

source: /scipy/stats/_continuous_distns.py :8588

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