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.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

ext_distributions-1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file ext-distributions-1.0.tar.gz.

File metadata

  • Download URL: ext-distributions-1.0.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

Hashes for ext-distributions-1.0.tar.gz
Algorithm Hash digest
SHA256 5f3d53d9394c005ac0da97c779b0f00e8ea73207bfaff187711fa21e947afe53
MD5 cb3050974b284304ac1f7922552dd51a
BLAKE2b-256 1f1456c56269d14b9a323cc0daf991e89feaaedc428d096ff550af894f804323

See more details on using hashes here.

File details

Details for the file ext_distributions-1.0-py3-none-any.whl.

File metadata

  • Download URL: ext_distributions-1.0-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

Hashes for ext_distributions-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36b37ac02b281006d59314571720035f75d6a47b0408b80f2bd486a7410d4790
MD5 76510585998b6d0d365e8918e5966a5e
BLAKE2b-256 792871c2e5d21eb6977957858ec61dc2f53fae8bcefb59ba39abcfae732dfa62

See more details on using hashes here.

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