Skip to main content

A package for Gaussian and Binomial distributions

Project description

DistroLab

Introduction

DistroLab is a Python package for working with Gaussian and Binomial distributions. It provides functionality to calculate characteristics like mean, standard deviation, and to visualize the distributions.

Installation

To install DistroLab, run the following command:

pip install DistroLab

Dependencies

  • math
  • matplotlib

Usage

Here are some examples of how to use DistroLab:

Working with Gaussian Distribution

from distrolab import Gaussian

# Create a Gaussian distribution
gaussian = Gaussian(mu=10, sigma=2)

# Calculate mean and standard deviation
mean = gaussian.calculate_mean()
stdev = gaussian.calculate_stdev()

# Plot the histogram
gaussian.plot_histogram()

# Plot the probability density function
gaussian.plot_histogram_pdf()

Working with Binomial Distribution

from distrolab import Binomial

# Create a Binomial distribution
binomial = Binomial(prob=0.5, size=20)

# Calculate mean and standard deviation
mean = binomial.calculate_mean()
stdev = binomial.calculate_stdev()

# Plot the histogram
binomial.plot_data_histogram()

# Plot the probability density function
binomial.plot_distribution_pdf()

License

This project is licensed under the MIT License

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DistroLab-0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DistroLab-0.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file DistroLab-0.2.tar.gz.

File metadata

  • Download URL: DistroLab-0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for DistroLab-0.2.tar.gz
Algorithm Hash digest
SHA256 0db5ec684353d04e45248f80d4e4aa5a9974478386e8d10d2b11f94072ccd5be
MD5 c59670e67663db3be835560cbaabdc78
BLAKE2b-256 143a5f8263fe276435e20b7609b9e7a3f035efae6029822a5915a3bf07ca7fb6

See more details on using hashes here.

File details

Details for the file DistroLab-0.2-py3-none-any.whl.

File metadata

  • Download URL: DistroLab-0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for DistroLab-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 410d8d555e6fd1976c1e3e6a53cb6d4af2e17febf5b37fb7475c2e2590acf9cb
MD5 dc8b4e3afc18e05e8f039fd3b7837a30
BLAKE2b-256 9bee79cf63ac01409618256de02b71a5d78f015c2133a7adfa969a8f4978a8c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page