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 hashes)
Built Distribution
Close
Hashes for ext_distributions-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c14d03c6f89e0447eaa451ce5d2d56b9963dc1f1b0e9166a9332c8f543e7dc |
|
MD5 | 766e2b6a22725b0009db83593d09e4ca |
|
BLAKE2b-256 | 6a616acb714961d8d6c987da6d77bb26d46f87abaa7bc86349292bd7c3a7a680 |