Skip to main content

Gaussian and Binomial distributions

Project description

gabid package

This package implements the Gaussian and Binomial Distributions providing the following capabilities:

  • Compute the mean and standard deviation given a file with all the samples
  • Compute the pdf
  • Allows to add two of the kind

For Gaussian distribution only:

  • Plot histogram
  • Plot histogram pdf

For Binomial distribution only:

  • Plot bar
  • Plot bar pdf


To start using this package just type: pip install gabid


This package provides three classes: Distribution, Gaussian and Binomial. The Distribution class is only used to read all the values from a txt file and convert them into a list. Both Gaussian and Binomial inherit from this class.

Quick start

See Gaussian example:

gaussian = Gaussian(25, 2)
gaussian.read_data_file('numbers.txt') # numbers.txt is a txt with all the samples
gaussian.calculate_mean() # to recompute mean according to the data in the txt
gaussian.calculate_stdev() # to recompute standard deviation according to the data in the txt
gaussian.pdf(25) # to compute the pdf of a value


Used resources



© Copyright 2019 by Sara Garci. All rights reserved.

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

gabid-0.5.tar.gz (3.9 kB view hashes)

Uploaded source

Built Distribution

gabid-0.5-py3-none-any.whl (6.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page