Package for computing PMF and CDF of Poisson binomial distribution.
Project description
fast-poibin
fast-poibin is a Python package for efficiently computing PMF or CDF of Poisson binomial distribution.
- API Reference: https://privet-kitty.github.io/fast-poibin/
- Repository: https://github.com/privet-kitty/fast-poibin/
Installation
pip install fast-poibin
Python versions 3.8 to 3.11 are supported.
Basic Usage
>>> from fast_poibin import PoiBin
>>> poibin = PoiBin([0.1, 0.2, 0.2])
>>> poibin.pmf
array([0.576, 0.352, 0.068, 0.004])
>>> poibin.cdf
array([0.576, 0.928, 0.996, 1. ])
Copyright
Copyright (c) 2023 Hugo Sansaqua.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fast_poibin-0.3.1.tar.gz
(11.5 kB
view details)
Built Distribution
File details
Details for the file fast_poibin-0.3.1.tar.gz
.
File metadata
- Download URL: fast_poibin-0.3.1.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56381035700eb03f3eb297609090568e6451bfed908e0c66132089b4e0504b33 |
|
MD5 | 70cc82cbd1a363202c9e81f6f89811a9 |
|
BLAKE2b-256 | fb8c93730cd84e0fd9184fa8ba79facb2e1f09568c316274c689115b925a7440 |
File details
Details for the file fast_poibin-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: fast_poibin-0.3.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12874daa6709680bf6e0718a84719bffd011be555ce4b9f211fe647de2a0771a |
|
MD5 | 792aec10ba5ef96c6dfc59016e732884 |
|
BLAKE2b-256 | 8f124db63daf135737da998d07083112e63814e4edf115717e956068e431c2d6 |