Skip to content

Bug. Infinite loop in Binomial Distribution #1324

@benjamin-lieser

Description

@benjamin-lieser

With the current master branch and the values of
n = 16000000 and
p = 3.1444753148558566e-10
for the Binomial distribution

it got stuck in an infinite loop in the BINV algorithm

I know its not reproducible because you need to get an unlucky random number for it to happen. But it is described in the GSL source code https://github.com/ampl/gsl/blob/47862078af4a204c4220f028656a19ddd3922144/randist/binomial_tpe.c#L100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions