Gaussian distributions and Binomial distributions
Project description
##ext-distributions
Package currently supports calculation and visualization of binomial and gaussian distributions
Installation
Use the package manager pip to install ext_distributions.
pip install ext-distributions
Usage Gaussian distribution
from ext_distributions import Gaussian
gaussian = Gaussian()
gaussian.read_data_file('filename')#The txt file should have one number (float) per line
gaussian.plot_histogram()#Output's a histogram of current data file
gaussian.plot_histogram_pdf()#plot the normalized histogram of the data and a plot of the probability density function along the same range
Usage Binomial distribution
from ext_distributions import Binomial
binomial = Binomial()
binomial.read_data_file('filename')#The txt file should should contain only 0 or 1 per line(1=positive case)
binomial.replace_stats_with_data()#updates mean and standard deviation(do use it after reading a text file)
binomial.plot_bar()#Output's a bargraph of current data file
binomial.plot_bar_pdf()#Plot's the pdf of the binomial distribution
Usage Other
#Adding of two gaussian objects
gaussian_three = gaussian_one + gaussian_two
#Adding of two binomial objects with same probability(p) value
binomial_three = binomial_one + binomial_two
License
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
ext-distributions-1.1.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file ext-distributions-1.1.tar.gz
.
File metadata
- Download URL: ext-distributions-1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7150a7f83694e227f3c488c13d1c2f35d0ee1f4d38af424881404ad2b688ead |
|
MD5 | 63eb12445209bf523beefa99a28394fb |
|
BLAKE2b-256 | 475af1224eca2e3a96c3119db4a5f93f95a365e6341daa0fb32217adf0b621ee |
File details
Details for the file ext_distributions-1.1-py3-none-any.whl
.
File metadata
- Download URL: ext_distributions-1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c14d03c6f89e0447eaa451ce5d2d56b9963dc1f1b0e9166a9332c8f543e7dc |
|
MD5 | 766e2b6a22725b0009db83593d09e4ca |
|
BLAKE2b-256 | 6a616acb714961d8d6c987da6d77bb26d46f87abaa7bc86349292bd7c3a7a680 |