This is a statistical Python library, to compute Mean and Standard deviation on of various Probability distributions, like Gaussian Distribution and Binomial distribution. This package is developed by Sandip Palit.
Install statement: pip install sp_distributions
Import statement :
Gaussian: from sp_distributions import Gaussian
Binomial: from sp_distributions import Binomial
Initialise statement :
Gaussian: g=Gaussian(5,3) (mu=5, sigma=3)
Binomial: b=Binomial(0.5,3) (p=0.5, n=3)
Methods :
calculate_mean()
Function to calculate the mean of the data set.
Args: None
Returns: float
calculate_stdev()
Function to calculate the standard deviation of the data set.
Args: None
Returns: float
read_data_file()
Function to read in data from a txt file. The txt file should have one number (float) per line. After reading in the file, the mean and standard deviation are calculated
Args: file_name (string)
Returns: None
plot()
Function to output a plotting of the instance variable data using matplotlib pyplot library.
Args: None
Returns: None
pdf():
Probability density function calculator for the gaussian distribution, on a specific point (x).
Args: x (float)
Returns: float
plot_pdf():
Function to plot the normalized graph of the data and a plot of the probability density function along the same range.
Args: n_spaces (int)
Returns: x values (list), y values (list)
You can also add together two objects of a distribution by using + operator.
Metadata
Release files for sp-distributions 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sp_distributions-0.1.2.tar.gz | 3.7 kB | Without provenance | Details |
Release files / sp_distributions-0.1.2.tar.gz
| Download URL | sp_distributions-0.1.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e762df2ba1a14a99be7c08b0ad6b9a50bb4d2f2565449e602dc2f34a42cd0f3
|
|
BLAKE2b-256 checksum How to use checksums |
31495672cd749dada1bdc5fdc23fac45ea1f12ead028a3f7acb8d4046a2edba4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/2.7.17
|
Security for sp-distributions 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.