This package serves as a template for uploading a Python package to Pypi.
This package deals with Gaussian and Binomial distributions. For each distribution, the package is able to calculate mean, standard deviation, and probability density function, as well as visualize the distributions. This package is part of Udacity DSND course work.
-
To install, type in the command line:
pip install distributions-ald2 -
Example code in Python:
from distributions_ald2 import Gaussian, Binomial gaussian_one = Gaussian(0, 1) # Instantiate a Gaussian object gaussian_one.calculate_stdev() gaussian_one.pdf(2)
Note that the package name must be unique to be able to upload to Pypi
- A folder with the name of the package that contains:
- the Python code that makes up the package
README.md__init__.pylicense.txtsetup.cfg
setup.py