Skip to content

Poisson distribution falls into an infinite loop for parameter λ=∞ #1291

Merged
dhardy merged 1 commit into
rust-random:masterfrom
Thopic:1290
Feb 27, 2023
Merged

Poisson distribution falls into an infinite loop for parameter λ=∞ #1291
dhardy merged 1 commit into
rust-random:masterfrom
Thopic:1290

Conversation

@Thopic

@Thopic Thopic commented Feb 24, 2023

Copy link
Copy Markdown
Contributor

Pull request for issue #1290.

Comment thread rand_distr/src/poisson.rs Outdated
@vks

vks commented Feb 25, 2023

Copy link
Copy Markdown
Contributor

Maybe we can also add a test for nan?

@dhardy

dhardy commented Feb 27, 2023

Copy link
Copy Markdown
Member

@vks this returns NonFinite for both +inf and nan.

Thanks @Thopic.

@dhardy dhardy merged commit 0f3eced into rust-random:master Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants