Skip to main content

Implementation of the Kumaraswamy distribution

Project description

A simple implementation of the Kumaraswamy distribution.

License MIT PyPI version

How to use

Install it from pip (kumaraswamy only depends on numpy)

pip install kumaraswamy

and it’s ready to use from Python

import kumaraswamy

The package provides one simple class called kumaraswamy, which implements the distribution. It is intended to mimic the API of scipy.stats.

from kumaraswamy import kumaraswamy

d1 = kumaraswamy(a=0.5, b=0.5)

the d1 object now has methods

  • pdf(x) and logpdf(x)
  • cdf(x)
  • rvs(size)

to calculate the probability density function (and its logarithm), the cumulative density function, and to get random samples from the distribution.

Also available are some basic properties specific to the distribution

d2.mode  # see help(d2.mode) for details


Copyright 2018 João Faria.

kumaraswamy is free software made available under the MIT License. For details see the LICENSE file.

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kumaraswamy, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size kumaraswamy-0.1-py3-none-any.whl (5.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size kumaraswamy-0.1.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page