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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gabid-0.6.tar.gz
.
File metadata
- Download URL: gabid-0.6.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
210b9fc4931647f8372121c5ec1a7db40fbe526d14ac5f08165250f770e87e1a
|
|
MD5 |
286699946111379f863cc41293e4ee34
|
|
BLAKE2b-256 |
29abf857f6fa4f0a648374749170cbcd77f9bfe34a52a9820be6e4be06ee92ac
|
File details
Details for the file gabid-0.6-py3-none-any.whl
.
File metadata
- Download URL: gabid-0.6-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
141fd5f9b5db2de2377d551d5ee91d042f3b33d1b44420b6d4f353c166d08bb8
|
|
MD5 |
3f3d059f31c5dba6999aa714b068b1ca
|
|
BLAKE2b-256 |
afcb47cdf1fce24100e6bd3bf25444129168474cdefd4395659e0a820a2c09be
|