Gaussian and Binomal distributions
Project description
This is a simple python package for calculating Gaussian and Binomial Distributions.
In this package there are two classes present:
- Gaussian
- Binomial
use from probability_distro import Gaussian, Binomial
Examples:
# parameters are mean and standard deviation.
first_gaussian = Gaussian(25,2)
second_gaussian = Gaussian(30,3)
# add gaussians using + operator.
add_gaussians = first_gaussian + second_gaussian
"""
Methods:
1.read_data_file()
Function to read in data from a txt file. The txt file should have
one number (float) per line. The numbers are stored in the data attribute.
Args:
file_name (string): name of a file to read from
Returns:
None
2. calculate_mean()
Function to calculate the mean of the data set.
Args:
None
Returns:
float: mean of the data set
3. calculate_stdev()
Function to calculate the standard deviation of the data set.
Args:
sample (bool): whether the data represents a sample or population
Returns:
float: standard deviation of the data set
"""
For more methods please check the source code for this package.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file probability_distro-0.1.3.tar.gz.
File metadata
- Download URL: probability_distro-0.1.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb2c2e32eaa3c9b0117fc5f8ad1f96b053f72bdd1938fce8c620f7441e91ded3
|
|
| MD5 |
eed6d04c4a4e4af9f48ae1e249964a6a
|
|
| BLAKE2b-256 |
c65fe050a019e036b71a77d279307e30b9da1da0dba8b21f3adf0c059b1e643f
|
File details
Details for the file probability_distro-0.1.3-py3-none-any.whl.
File metadata
- Download URL: probability_distro-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecad8d83da8fa01a81b77ceb9ad654e76af02571a5be8ad5020873f0bfb49806
|
|
| MD5 |
16d5e1e75b99dcc09b5a791cb89fd158
|
|
| BLAKE2b-256 |
1ade3cda23e92768cd3dd4787bd63fe12c5db4e260ea930cf1445d7fcd7d2b6c
|