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

Uploaded Source

Built Distribution

fast_poibin-0.2.6-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fast_poibin-0.2.6.tar.gz
  • Upload date:
  • Size: 10.7 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.6.tar.gz
Algorithm Hash digest
SHA256 396a46e6e758579b115a1414e751af79fd9c2b9c3513291294137f1e12644571
MD5 14417d2f09734e51e1e9c92ad4243847
BLAKE2b-256 ba8d411f1e396ace9cd7bcb3ad9e4e0928eedfdb602bc6a454bb8ac1b6b1b8ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fast_poibin-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5793ae2ccbd8470cd2265c2dc4149c5c9308d756823302c064d8e0bfb2b9244d
MD5 ab42ab6ac2b0f1d906ffcf6619b698de
BLAKE2b-256 ea39f85449b754b86ba3e4f1757ca15770a6c5b57ffc0c4b1df2646545bdb645

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