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.

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 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