{"id":23046464,"url":"https://github.com/tyagihardik42/bingau","last_synced_at":"2025-10-17T15:51:37.291Z","repository":{"id":57415130,"uuid":"281684653","full_name":"tyagihardik42/bingau","owner":"tyagihardik42","description":"Python project for easy representation of Binomial and Gaussian distributions.","archived":false,"fork":false,"pushed_at":"2020-08-09T12:25:45.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T10:07:22.689Z","etag":null,"topics":["binomial-distribution","gaussian","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyagihardik42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-22T13:26:18.000Z","updated_at":"2020-08-09T12:38:16.000Z","dependencies_parsed_at":"2022-09-01T16:51:53.370Z","dependency_job_id":null,"html_url":"https://github.com/tyagihardik42/bingau","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tyagihardik42/bingau","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyagihardik42%2Fbingau","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyagihardik42%2Fbingau/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyagihardik42%2Fbingau/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyagihardik42%2Fbingau/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyagihardik42","download_url":"https://codeload.github.com/tyagihardik42/bingau/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyagihardik42%2Fbingau/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263794657,"owners_count":23512556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["binomial-distribution","gaussian","python3"],"created_at":"2024-12-15T22:24:41.460Z","updated_at":"2025-10-17T15:51:37.229Z","avatar_url":"https://github.com/tyagihardik42.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bingau\n\nbingau is a Python package for dealing with Binomial and Gaussian distibutions, hence the name.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install bingau.\n\n```bash\npip install bingau\n```\n\n## Prerequisite\n\nThe package requires matplotlib preinstalled. Install matplotlib using \n\n```bash\npip install matplotlib\n```\n\n## Usage\n\nThe package can be used for easy representation of Binomial and Gaussian variables. Magic functons are utilised\nfor easily adding two Gaussian distributions and two Binomial distributions as well as printing them. \n\n##### Gaussian\n\n```python\nimport bingau\n\ng1 = bingau.Gaussian(25,2)                                    #Initiate a Gaussian distribution. Positional arguments: (Mu, Sigma)\n\ng1.data = [1, 3, 99, 100, 120, 32, 330, 23, 76, 44, 31]       #Sample data input\ng1.calculate_mean()                                           #Mean\ng1.calculate_stdev(True)                                      #Standard deviation\ng1.plot_histogram()                                           #Plot histogram\ng1.pdf(1.1)                                                   #pdf calculator at a point x, here x = 1.1\ng1.plot_histogram_pdf(50)                                     #Function to plot the normalized histogram of the data and a plot of the \n                                                              #probability density function along the same range\n                                                           \ng2 = bingau.Gaussian(50,1.2)                                  #Second Gaussian distribution\n\ng5 = g1 + g2                                                  #Easily add two Gaussian distributions\nprint(g5)                                                     #Prints the mean and std-dev of the resultant Gaussian distribution\n\n```\n\n##### Binomial\n\n```python\nimport bingau\n\ng3 = bingau.Binomial(0.4,20)                                  #Initiate a Binomial distribution. Positional arguments: (p, n)\n\ng3.data = [0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0]             #Sample data input\ng3.calculate_mean()                                           #Mean\ng3.calculate_stdev()                                          #Standard deviation\ng3.replace_stats_with_data()                                  #Function to calculate p and n from the data set\ng3.plot_bar()                                                 #Function to output a histogram of the instance variable data using matplotlib pyplot library\ng3.pdf(1.1)                                                   #pdf calculator at a point x, here x = 1.1\ng3.plot_bar_pdf()                                             #Function to plot the pdf of the binomial distribution\n                                                           \ng4 = bingau.Binomial(0.5,50)                                  #Second Binomial distribution\n\ng6 = g3 + g4                                                  #Easily add two Binomial distributions\nprint(g6)                                                     #Prints the mean and std-dev of the resultant Binomial distribution\n\n```\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyagihardik42%2Fbingau","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyagihardik42%2Fbingau","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyagihardik42%2Fbingau/lists"}