Skip to main content

Gaussian distributions

Project description

Coinpy

Coinpy is a package to handle distribution data. There's a specific focus on gaussian and binomial distributions

Functions include returning the mean, standard deviation and plots of given dataset. You can also use coinpy to import data and add gaussian curves.

Made with assistance of Udacity during the data science course in object-oriented programming.

Installation

Use the package manager pip to install coinpy.

pip install coinpy

Usage

from coinpy import Gaussian

gaussian_one = Gaussian()

gaussian_one.read_data_file('numbers.txt', True)
# read .txt file from local directory

gaussian_one.calculate_mean()
# returns and stores float mean 25 for example

gaussian_one.calculate_stdev()
# returns and stores standard dev 2 for example

gaussian_one.pdf(5)
# given x (or 5) returns prob density function 0.19947

gaussian_one.plot_histogram_pdf()
# returns normalized histogram and prob density function

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

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

Source Distribution

coinpy-1.2.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file coinpy-1.2.tar.gz.

File metadata

  • Download URL: coinpy-1.2.tar.gz
  • Upload date:
  • Size: 4.1 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.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.3

File hashes

Hashes for coinpy-1.2.tar.gz
Algorithm Hash digest
SHA256 6baef0943107a95244778e4603ecc2440dacb10d71e5bee03146fac23be0d695
MD5 7fe037186cde83cd8f4aa2fd82f41757
BLAKE2b-256 d555e30c427b38057342b1e37c8be31582ad9a545868d830e9b479e510d8925f

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