Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sampling integers from discrete distributions #155
Support sampling integers from discrete distributions #155
Changes from all commits
b97707c
3deb714
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 92 in src/distribution/bernoulli.rs
Codecov / codecov/patch
src/distribution/bernoulli.rs#L90-L92
Check warning on line 99 in src/distribution/bernoulli.rs
Codecov / codecov/patch
src/distribution/bernoulli.rs#L99
Check warning on line 116 in src/distribution/binomial.rs
Codecov / codecov/patch
src/distribution/binomial.rs#L115-L116
Check warning on line 119 in src/distribution/binomial.rs
Codecov / codecov/patch
src/distribution/binomial.rs#L119
Check warning on line 132 in src/distribution/binomial.rs
Codecov / codecov/patch
src/distribution/binomial.rs#L130-L132
Check warning on line 131 in src/distribution/categorical.rs
Codecov / codecov/patch
src/distribution/categorical.rs#L129-L131
Check warning on line 139 in src/distribution/categorical.rs
Codecov / codecov/patch
src/distribution/categorical.rs#L137-L139
Check warning on line 146 in src/distribution/categorical.rs
Codecov / codecov/patch
src/distribution/categorical.rs#L146
Check warning on line 344 in src/distribution/categorical.rs
Codecov / codecov/patch
src/distribution/categorical.rs#L344
Check warning on line 346 in src/distribution/categorical.rs
Codecov / codecov/patch
src/distribution/categorical.rs#L346
Check warning on line 82 in src/distribution/discrete_uniform.rs
Codecov / codecov/patch
src/distribution/discrete_uniform.rs#L80-L82
Check warning on line 89 in src/distribution/discrete_uniform.rs
Codecov / codecov/patch
src/distribution/discrete_uniform.rs#L89
Check warning on line 96 in src/distribution/geometric.rs
Codecov / codecov/patch
src/distribution/geometric.rs#L96
Check warning on line 98 in src/distribution/geometric.rs
Codecov / codecov/patch
src/distribution/geometric.rs#L98
Check warning on line 104 in src/distribution/geometric.rs
Codecov / codecov/patch
src/distribution/geometric.rs#L100-L104
Check warning on line 114 in src/distribution/geometric.rs
Codecov / codecov/patch
src/distribution/geometric.rs#L112-L114
Check warning on line 151 in src/distribution/hypergeometric.rs
Codecov / codecov/patch
src/distribution/hypergeometric.rs#L151
Check warning on line 155 in src/distribution/hypergeometric.rs
Codecov / codecov/patch
src/distribution/hypergeometric.rs#L155
Check warning on line 160 in src/distribution/hypergeometric.rs
Codecov / codecov/patch
src/distribution/hypergeometric.rs#L160
Check warning on line 178 in src/distribution/hypergeometric.rs
Codecov / codecov/patch
src/distribution/hypergeometric.rs#L176-L178
Check warning on line 172 in src/distribution/multinomial.rs
Codecov / codecov/patch
src/distribution/multinomial.rs#L170-L172
Check warning on line 184 in src/distribution/multinomial.rs
Codecov / codecov/patch
src/distribution/multinomial.rs#L183-L184
Check warning on line 195 in src/distribution/multinomial.rs
Codecov / codecov/patch
src/distribution/multinomial.rs#L188-L195
Check warning on line 202 in src/distribution/multinomial.rs
Codecov / codecov/patch
src/distribution/multinomial.rs#L198-L202
Check warning on line 204 in src/distribution/multinomial.rs
Codecov / codecov/patch
src/distribution/multinomial.rs#L204
Check warning on line 102 in src/distribution/poisson.rs
Codecov / codecov/patch
src/distribution/poisson.rs#L100-L102