Skip to main content

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

MIT

Project details


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)

Uploaded Source

Built Distribution

ext_distributions-1.1-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page