Skip to content

quantile_bisect fails to converge for intervals far from zero #1611

Description

@nworb-cire

I have the following code:

d = MixtureModel(
    [
        Uniform{Float64}(-0.0001, 0.0001),
        LogNormal{Float64}(11.174347445936371, 1.6086247197750911)
    ],
    [
        0.8832,
        0.1168
    ]
)
quantile(d, 0.99)

When quantile_bisect is run, it eventually settles into lx::Float64 == 643851.9074493216 and rx::Float64 == 643851.9074493217. Since rx == nextfloat(lx) and rx - lx > tol, convergence criteria are never met and it loops infinitely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions