Skip to main content

Package for computing PMF and CDF of Poisson binomial distribution.

Project description

fast-poibin

Build Status Coverage Status PyPI Version

fast-poibin is a Python package for efficiently computing PMF or CDF of Poisson binomial distribution.

Installation

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.

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.2.5.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

fast_poibin-0.2.5-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file fast_poibin-0.2.5.tar.gz.

File metadata

  • Download URL: fast_poibin-0.2.5.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.8 Windows/10

File hashes

Hashes for fast_poibin-0.2.5.tar.gz
Algorithm Hash digest
SHA256 f75e9b8b6e547d2c8148253bf2d71f9fc412556bdc4bafcded530dcff64daee8
MD5 896bc550228c5eacc15a9de8c4cf44b1
BLAKE2b-256 3ca5e34900340ac4f6e5693ccd37e9e0cdb0d1e31d49ce29269faa8b5755da2b

See more details on using hashes here.

File details

Details for the file fast_poibin-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: fast_poibin-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.8 Windows/10

File hashes

Hashes for fast_poibin-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3568b70f2e2643cc7f943828f32d2f858a38b67b04a8d7dd846e538f27767b6e
MD5 5b4cf24dd3c99482ea2b406caec9d288
BLAKE2b-256 2aae3ec9b99f3e136ad6d9788f5cc13a2d71557cbc141ab97d0945795f81b126

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page