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.1 or later. As of this writing, Python 3.11.x 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.3.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file fast-poibin-0.2.3.tar.gz.

File metadata

  • Download URL: fast-poibin-0.2.3.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.11.1 Windows/10

File hashes

Hashes for fast-poibin-0.2.3.tar.gz
Algorithm Hash digest
SHA256 f2d50adb3df4b12b8cf495d4875de670602667197f51a5a21803dd7cb6955336
MD5 d38e2488cba82226445eb92932f07057
BLAKE2b-256 a854270846b7783250c3a0ceceb7b2b626ce2f54eae3ff5e3d4fcf83dd3e5770

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fast_poibin-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f23532b9013f4a594c74e905b8cf1b15c07bef6be98e26ed6e16c2e5c1b48d5
MD5 d592aa7623fe461f8fe7c1066806602b
BLAKE2b-256 0d6c36a3b69ca9b9f1f094d5197c369b485d203091e275b6ddd15661ba06871f

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