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

Installation

To start using this package just type: pip install gabid

Files

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

References

Used resources

Contributors

License

© 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

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 Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page