Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

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.

Files for gabid, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size gabid-0.6-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size gabid-0.6.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page