{ "info": { "author": "Gaurav Ansal", "author_email": "ansal.gaurav@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# udc-dsnd-distributions package\n\nThis package provides the Gaussian distribution and Binomial distribution classes.\n\n* Gaussian - Gaussian distribution class for calculating and visualizing a Gaussian distribution.\nAttributes:\n\t\tmean (float) - representing the mean value of the distribution.\n\t\tstdev (float) - representing the standard deviation of the distribution.\n\t\tdata_list (list of floats) - a list of floats extracted from the data file.\n \nMethods:\n\t\tcalculate_mean() - Function to calculate the mean of the data set.\n\t\tcalculate_stdev() - Function to calculate the standard deviation of the data set.\n\t\tplot_histogram() - Function to output a histogram of the instance variable data using matplotlib pyplot library.\n\t\tread_data_file(filename) - Function to read in data from a txt file. The txt file should have one number (float) per line. The \t\t\tnumbers are stored in the data attribute. \n\t\tpdf(x) - Probability density function calculator for the gaussian distribution\n\t\t\tArgs:\n\t\t\t\tx (float): point for calculating the probability density function\n\t\t\tReturns:\n\t\t\t\tfloat: probability density function output\n\t\tplot_histogram_pdf(n_spaces = 50) - Function to plot the normalized histogram of the data and a plot of the probability density \t\t\tfunction along the same range\n\t\t\tArgs:\n\t\t\t\tn_spaces (int): number of data points \n\t\t\tReturns:\n\t\t\t\tlist: x values for the pdf plot\n\t\t\t\tlist: y values for the pdf plot\n\t\t__add__(other) - Function to add together two Gaussian distributions\n\t\tArgs:\n\t\t\tother (Gaussian): Gaussian instance\n\t\tReturns:\n\t\t\tGaussian: Gaussian distribution\n \t\t__repr__() - Function to output the characteristics of the Gaussian instance\n \n \n* Binomial - Binomial distribution class for calculating and visualizing a Binomial distribution.\n Attributes:\n\t\tmean (float) representing the mean value of the distribution\n\t\tstdev (float) representing the standard deviation of the distribution\n\t\tdata_list (list of floats) a list of floats to be extracted from the data file\n\t\tp (float) representing the probability of an event occurring\n\t\tn (int) number of trials\n \nMethods:\n\t\tcalculate_mean() - Function to calculate the mean from p and n\n\t\tcalculate_stdev() - Function to calculate the standard deviation from p and n.\n\t\tread_data_file(filename) - Function to read in data from a txt file. The txt file should have one number (float) per line. The \t\t\tnumbers are stored in the data attribute. \n\t\treplace_stats_with_data() - Function to calculate p and n from the data set\n\t\tArgs: \n\t\t\tNone\n\t\tReturns: \n\t\t\tfloat: the p value\n\t\t\tfloat: the n value\n\t\tplot_bar() - Function to output a histogram of the instance variable data using matplotlib pyplot library.\n\t\tpdf(k) - Probability density function calculator for the gaussian distribution.\n\t\tArgs:\n\t\t\tx (float): point for calculating the probability density function\n\t\tReturns:\n\t\t\tfloat: probability density function output\n\t\tplot_bar_pdf() - Function to plot the pdf of the binomial distribution\n\t\tArgs:\n\t\t\tNone \n\t\tReturns:\n\t\t\tlist: x values for the pdf plot\n\t\t\tlist: y values for the pdf plot \n\t\t__add__(other) - Function to add together two Binomial distributions with equal p\n\t\tArgs:\n\t\t\tother (Binomial): Binomial instance \n\t\tReturns:\n\t\t\tBinomial: Binomial distribution \n\t\t__repr__() - Function to output the characteristics of the Binomial instance.\n \n\n\n# Files\n\n* Generaldistribution.py - contains Distribution class, its attributes and methods being inherited by Gaussian and Binomial class.\n* Gaussiandistribution.py - contains Gaussian class, its attributes and methods stated above in udc-dsnd-distributions package summary.\n* Binomialdistribution.py - contains Binomial class, its attributes and methods stated above in udc-dsnd-distributions package summary.\n\n# Installation\n* The code should run with no issues using Python versions 3.*.\n* No extra besides the built-in libraries from Anaconda needed to run this project\n\t\tMath\n\t\tmatplotlib", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "udc-dsnd-distributions", "package_url": "https://pypi.org/project/udc-dsnd-distributions/", "platform": "", "project_url": "https://pypi.org/project/udc-dsnd-distributions/", "project_urls": null, "release_url": "https://pypi.org/project/udc-dsnd-distributions/1.9/", "requires_dist": null, "requires_python": "", "summary": "Gaussian and Binomial distributions", "version": "1.9" }, "last_serial": 4934802, "releases": { "1.9": [ { "comment_text": "", "digests": { "md5": "242aba11aa88969fa5adfd8c27210e39", "sha256": "efa2c1c1eb6df438d6297c1d7f94c245c4dcffa518b94156c6544a955428c423" }, "downloads": -1, "filename": "udc_dsnd_distributions-1.9.tar.gz", "has_sig": false, "md5_digest": "242aba11aa88969fa5adfd8c27210e39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4317, "upload_time": "2019-03-13T14:20:31", "url": "https://files.pythonhosted.org/packages/3b/7b/c5fca1f54ece184a8d66798fb1758f8360321b1ff00b2887486b751c7cf3/udc_dsnd_distributions-1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "242aba11aa88969fa5adfd8c27210e39", "sha256": "efa2c1c1eb6df438d6297c1d7f94c245c4dcffa518b94156c6544a955428c423" }, "downloads": -1, "filename": "udc_dsnd_distributions-1.9.tar.gz", "has_sig": false, "md5_digest": "242aba11aa88969fa5adfd8c27210e39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4317, "upload_time": "2019-03-13T14:20:31", "url": "https://files.pythonhosted.org/packages/3b/7b/c5fca1f54ece184a8d66798fb1758f8360321b1ff00b2887486b751c7cf3/udc_dsnd_distributions-1.9.tar.gz" } ] }