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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fast-poibin-0.2.4.tar.gz
  • Upload date:
  • Size: 10.5 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.4.tar.gz
Algorithm Hash digest
SHA256 c55dbb7dca568ba4ab5008b546b0a245a450b802827231c385fc77669371f449
MD5 7fc8ece390553e3444fec4c15cb957c1
BLAKE2b-256 0e7627838cc148d9d478908962c7654d9ba39dab66a2ea76d591d7dbc3f784c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fast_poibin-0.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c31f961b2b53f0851320aacac79d392f5cda9c4768730726797409a1e6ef4867
MD5 8a3ac7e591d43d6234792512fcebb9ab
BLAKE2b-256 c995caaddffe031c7f460f1e428fc384f503faec068500d19c745c8ec0cb5c01

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