Gaussian and Binomial distributions
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 class is only used to read all the values from a txt file and convert them into a list.
Binomial inherit from this class.
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
© Copyright 2019 by Sara Garci. All rights reserved.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|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 hashes|
|Filename, size gabid-0.6.tar.gz (3.9 kB)||File type Source||Python version None||Upload date||Hashes View hashes|