{"id":20617870,"url":"https://github.com/joozef315/jgb_distributions","last_synced_at":"2026-06-10T09:31:43.296Z","repository":{"id":133509804,"uuid":"389456498","full_name":"JooZef315/JGB_distributions","owner":"JooZef315","description":"Python library dealing with Probability distributions.","archived":false,"fork":false,"pushed_at":"2021-07-25T23:17:41.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T19:44:13.435Z","etag":null,"topics":["python","statistics"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/JGB-distributions/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JooZef315.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-25T23:01:39.000Z","updated_at":"2022-05-10T22:03:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"564c8822-095e-4915-98c1-4b9a3ffb74a5","html_url":"https://github.com/JooZef315/JGB_distributions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JooZef315/JGB_distributions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JooZef315%2FJGB_distributions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JooZef315%2FJGB_distributions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JooZef315%2FJGB_distributions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JooZef315%2FJGB_distributions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JooZef315","download_url":"https://codeload.github.com/JooZef315/JGB_distributions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JooZef315%2FJGB_distributions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34146871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","statistics"],"created_at":"2024-11-16T12:06:18.827Z","updated_at":"2026-06-10T09:31:42.550Z","avatar_url":"https://github.com/JooZef315.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JGB_distributions\n\n\n## Description\n\nJGB_distributions is a Python library for dealing with Gaussian (normal) and Binomial Probability distributions.\n\n## Files\n\nGeneraldistribution.py: generic distribution class \n\nBinomialdistribution.py: Binomial distribution class for calculating and \n    visualizing a Binomial distribution.\n\nGaussiandistribution.py: Gaussian distribution class for calculating and \n    visualizing a Gaussian distribution.\n\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install JGB_distributions.\n\n```bash\npip install JGB_distributions\n```\n\n## Usage\n\n```python\nimport JGB_distributions\n\n# returns 'mean, standard deviation of a Gaussian distributions'\nG = JGB_distributions.Gaussian(mean, stdev)\n\n# returns 'mean, standard deviation, probability and size of a Binomial distributions'\nB = JGB_distributions.Binomial(prop, n)\n\n# returns 'mean, standard deviation of a Gaussian distributed data'\nG.read_data_file(file_name)\n\n# returns 'mean, standard deviation, probability and size of a Binomial distributed data'\nB = JGB_distributions.Binomial()\nB.read_data_file(file_name)\nB.replace_stats_with_data()\n\n# to calculate the mean for a dataset\nG.calculate_mean()\nB.calculate_mean()\n\n# to calculate the standard deviation for the two distributions\nG.calculate_stdev()\nB.calculate_stdev()\n\n# to plot the distributions\nG.plot_histogram()\nB.plot_bar()\n\n# to calculate Probability density function  for the two distributions\nG.pdf(point)\nB.pdf(point)\n\n# to plot Probability density function  for the two distributions\nG.plot_histogram_pdf(number of data points)\nB.plot_bar_pdf()\n\n# to add two distributions of the same type\nG_1 + G_2\nB_1 + B_2\n```\n\n## License\nThis project is licensed under the [MIT](https://choosealicense.com/licenses/mit/) - see the License.txt file for details\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoozef315%2Fjgb_distributions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoozef315%2Fjgb_distributions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoozef315%2Fjgb_distributions/lists"}