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/
pip install fast-poibin
Python versions 3.8 or later are supported.
>>> 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 (c) 2023 Hugo Sansaqua.