discrete-0.0.2
توضیحات
Pure Python implementation of discrete random variables
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | discrete-0.0.2 |
| نام | discrete |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ben Rosser |
| ایمیل نویسنده | rosser.bjr@gmail.com |
| آدرس صفحه اصلی | https://gitlab.com/TC01/python-discrete |
| آدرس اینترنتی | https://pypi.org/project/discrete/ |
| مجوز | MIT |
python-discrete
===============
This is a Pure Python implementation of several discrete probability
distributions. There are no external dependencies.
Why would you use this over, say, numpy and scipy? The main reason would
be is if, for whatever reason, you're unable to install C extensions
(for example, you need to work with 32-bit Python on a 64-bit system)
and just need to generate random events. The Python ``random`` module
supports generating events for several continuous random distributions
not discrete ones, hence this module.
Usage
-----
All implemented distributions are a subclass of the abstract Discrete
class, with ``pdf(k)``, ``cdf(k)``, and ``generate(n)`` methods. The
generate method returns an array of size ``n`` populated with randomly
distributed variables from the distribution.
Currently the Poisson and Binomial distributions are implemented. More
will likely be added in the future.
Legal
-----
discrete is released under the MIT License; see attached LICENSE file.
نحوه نصب
نصب پکیج whl discrete-0.0.2:
pip install discrete-0.0.2.whl
نصب پکیج tar.gz discrete-0.0.2:
pip install discrete-0.0.2.tar.gz