Gaussian and Binomial distributions
Project description
BnG Distributions Package
Includes Binomial and Gaussian Distributions
Summary of the package.
This package contains three files.
- Generaldistribution.py
- Gaussiandistribution.py
- Binomialdistribution.py
Files
Explanation of the files.
- The Generaldistribution.py contains:
- Generic distribution class for calculating and visualizing a probability distribution.
- And a Function to read in data from a txt file.
- The Gaussiandistribution.py contains:
- Gaussian distribution class for calculating and visualizing a Gaussian distribution.
- Function to calculate the mean of the data set.
- Function to calculate the standard deviation of the data set.
- Function to output a histogram of the instance variable data using matplotlib pyplot library.
- Probability density function calculator for the gaussian distribution.
- Function to plot the normalized histogram of the data and a plot of the probability density function along the same range.
- Function to add together two Gaussian distributions.
- Function to output the characteristics of the Gaussian instance.
- The Binomialdistribution.py contains:
- Binomial distribution class for calculating and visualizing a Binomial distribution.
- Function to calculate the mean from p and n.
- Function to calculate the standard deviation from p and n.
- Function to calculate p and n from the data set.
- Function to output a histogram of the instance variable data using matplotlib pyplot library.
- Probability density function calculator for the binomial distribution.
- Function to plot the pdf of the binomial distribution.
- Function to add together two Binomial distributions with equal p.
- Function to output the characteristics of the Binomial instance.
Installation
For installation, write the following command in your terminal:
- pip install bng_distributions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bng_dis_probability-0.2.tar.gz
.
File metadata
- Download URL: bng_dis_probability-0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa00076d50e432186d3bdcec38d5166965e7107ce6971e56b913f295706e440d |
|
MD5 | 38095777799a8fb48a62dfcde5f17dd7 |
|
BLAKE2b-256 | 404eafbe9125e41b05887322fcce91d7ceb22692adc6c9750333f5eeb520a849 |
File details
Details for the file bng_dis_probability-0.2-py3-none-any.whl
.
File metadata
- Download URL: bng_dis_probability-0.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eef09ba9818024b36e29b5099e3eb0793b714f4765363b35e44ea8a708ae3a0f |
|
MD5 | 9e5dd4b3aeeda46ef87e779b3a81cf0d |
|
BLAKE2b-256 | 5f758968a6a004766d2d6bc705d2c607278c6773af9bf37d76d760e5da79eba5 |