{"id":22871385,"url":"https://github.com/stainless-steel/probability","last_synced_at":"2025-04-07T12:11:10.635Z","repository":{"id":22069803,"uuid":"25398990","full_name":"stainless-steel/probability","owner":"stainless-steel","description":"Probability-theory toolbox","archived":false,"fork":false,"pushed_at":"2024-01-26T22:05:26.000Z","size":441,"stargazers_count":52,"open_issues_count":3,"forks_count":14,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-25T22:20:59.232Z","etag":null,"topics":["probability","random","sampling"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/stainless-steel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2014-10-18T14:04:40.000Z","updated_at":"2024-06-21T03:01:14.848Z","dependencies_parsed_at":"2024-06-21T03:01:13.008Z","dependency_job_id":"d18817eb-eae2-4d92-83e5-96828afebab6","html_url":"https://github.com/stainless-steel/probability","commit_stats":{"total_commits":362,"total_committers":10,"mean_commits":36.2,"dds":"0.10773480662983426","last_synced_commit":"522cfcd1a5abfed91a68e679a01c47bed2c1eb3c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stainless-steel%2Fprobability","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stainless-steel%2Fprobability/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stainless-steel%2Fprobability/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stainless-steel%2Fprobability/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stainless-steel","download_url":"https://codeload.github.com/stainless-steel/probability/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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":["probability","random","sampling"],"created_at":"2024-12-13T13:18:53.064Z","updated_at":"2025-04-07T12:11:10.613Z","avatar_url":"https://github.com/stainless-steel.png","language":"Rust","readme":"# Probability [![Package][package-img]][package-url] [![Documentation][documentation-img]][documentation-url] [![Build][build-img]][build-url]\n\nThe package provides a probability-theory toolbox.\n\n## Example\n\n```rust\nuse probability::prelude::*;\n\nlet mut source = source::default(42);\nlet distribution = Uniform::new(0.0, 1.0);\nlet sampler = Independent(\u0026distribution, \u0026mut source);\nlet samples = sampler.take(10).collect::\u003cVec\u003c_\u003e\u003e();\n```\n\nSources of randomness are provided by the [`random`][random] crate via the\n`source` module. In addition, one can make use of those sources that are\navailable in the [`rand`][rand] crate as illustrated below:\n\n```rust\nuse probability::prelude::*;\n\nstruct Source\u003cT\u003e(T);\n\nimpl\u003cT: rand::RngCore\u003e source::Source for Source\u003cT\u003e {\n    fn read_u64(\u0026mut self) -\u003e u64 {\n        self.0.next_u64()\n    }\n}\n\nlet mut source = Source(rand::rngs::OsRng::new().unwrap());\nlet distribution = Uniform::new(0.0, 1.0);\nlet sampler = Independent(\u0026distribution, \u0026mut source);\nlet samples = sampler.take(10).collect::\u003cVec\u003c_\u003e\u003e();\n```\n\n## Contribution\n\nYour contribution is highly appreciated. Do not hesitate to open an issue or a\npull request. Note that any contribution submitted for inclusion in the project\nwill be licensed according to the terms given in [LICENSE.md](LICENSE.md).\n\n[rand]: https://crates.io/crates/rand\n[random]: https://crates.io/crates/random\n\n[build-img]: https://github.com/stainless-steel/probability/workflows/build/badge.svg\n[build-url]: https://github.com/stainless-steel/probability/actions/workflows/build.yml\n[documentation-img]: https://docs.rs/probability/badge.svg\n[documentation-url]: https://docs.rs/probability\n[package-img]: https://img.shields.io/crates/v/probability.svg\n[package-url]: https://crates.io/crates/probability\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstainless-steel%2Fprobability","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstainless-steel%2Fprobability","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstainless-steel%2Fprobability/lists"}