Metadata-Version: 2.1
Name: fast-poibin
Version: 0.2.6
Summary: Package for computing PMF and CDF of Poisson binomial distribution.
Home-page: https://github.com/privet-kitty/fast-poibin
License: MPL-2.0
Author: Hugo Sansaqua
Author-email: privet.kitty99@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: numba (>=0.56.0,<0.57.0)
Requires-Dist: numpy (>=1.23.0,<2.0.0)
Project-URL: Documentation, https://privet-kitty.github.io/fast-poibin/
Project-URL: Repository, https://github.com/privet-kitty/fast-poibin
Description-Content-Type: text/markdown

# fast-poibin

[![Build Status](https://github.com/privet-kitty/fast-poibin/workflows/CI/badge.svg)](https://github.com/privet-kitty/fast-poibin/actions)
[![Coverage Status](https://coveralls.io/repos/github/privet-kitty/fast-poibin/badge.svg?branch=main)](https://coveralls.io/github/privet-kitty/fast-poibin?branch=main)
[![PyPI Version](https://img.shields.io/pypi/v/fast-poibin)](https://pypi.org/project/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



```bash
pip install fast-poibin
```


You need Python version 3.8 or later. As of this writing, Python 3.11 isn't supported, but it will be available as soon as [numba supports it](https://github.com/numba/numba/issues/8304).

## Basic Usage


```python
>>> 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.

