Skip to content
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

fix infinite loop of Newton's method #666

Merged
merged 2 commits into from
Sep 20, 2017

Commits on Sep 20, 2017

  1. fix infinite loop of Newton's method

    quantile_newton and cquantile_newton find a quantile of a distribution
    using Newton's method. However, their convergence will never be
    satisfied when the initial point and the mode are the same. For example,
    quantile_newton(Normal(0, 1), 0.5) will result in an infinite loop. This
    patch fixes the problem by relaxing the convergence criterion.
    bicycle1885 committed Sep 20, 2017
    Configuration menu
    Copy the full SHA
    949ce38 View commit details
    Browse the repository at this point in the history
  2. test

    bicycle1885 committed Sep 20, 2017
    Configuration menu
    Copy the full SHA
    ea9808c View commit details
    Browse the repository at this point in the history