Implementation of the Kumaraswamy distribution
Project description
A simple implementation of the Kumaraswamy distribution.
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
d1.mean
d1.var
d2.mode # see help(d2.mode) for details
License
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kumaraswamy-0.2.tar.gz
.
File metadata
- Download URL: kumaraswamy-0.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bcfe2831095f69322edf7b37903a76dfaf20a0ac0b52f9d9b5b0fcccfa40d7e |
|
MD5 | d0dd2a65af238ef60f7fbc8eec0497d9 |
|
BLAKE2b-256 | da291401100a2127a13b0bc8edf07c31b7aa9825f218d6935b55f1c0978e76fb |
File details
Details for the file kumaraswamy-0.2-py3-none-any.whl
.
File metadata
- Download URL: kumaraswamy-0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fad521a03367a24e19be19bb99a258e13f0ab7540fc2c278afcaecae92d0ef9 |
|
MD5 | 8c08215e0d9131c084bb873eaa14703b |
|
BLAKE2b-256 | a1c4877805f75e278f972d209999da9d6085356d7e3442668945611dbc5640c7 |