C# Implementation of the Poisson Binomial Distribution the python poibin library
Перейти к файлу
katoma2017 9988d45fe4
Updated Authors
2020-06-12 16:47:30 -07:00
.gitignore Initial commit 2020-06-11 19:07:04 +00:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-06-11 12:07:08 -07:00
LICENSE Initial LICENSE commit 2020-06-11 12:07:09 -07:00
PoissonBinomialDistribution.cs Remove Processor 2020-06-12 16:42:20 -07:00
README.md Updated Authors 2020-06-12 16:47:30 -07:00
SECURITY.md Initial SECURITY.md commit 2020-06-11 12:07:09 -07:00

README.md

Poisson Binomial Distribution for C#

About

Binomial probability distribution is the probability distribution of the sum of independent Bernoulli random variables with non-uniform success probabilities. This implementation of the Poisson Binomial probability distribution is based on the python version developed by Mika Straka (https://github.com/tsakim/poibin).

Methods included:

  • pmf: probability mass function
  • cdf: cumulative distribution function

More information on the Poisson Binomial distribution can be found here: Yili Hong, On computing the distribution function for the Poisson binomial distribution, Computational Statistics & Data Analysis, Volume 59, March 2013, pages 41-51,ISSN 0167-9473

Usage

This code does not contain an FFT implementation. For it to run and work correctly, you will need to add a C# FFT library. I recommend and have used https://www.nayuki.io/res/free-small-fft-in-multiple-languages/FftTest.cs. If you use this source, the functional called in the code will call this FFT function without changes needed to the input parameters.

Authors

Kay Toma, Carlos Zamora Cura

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.