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

Update ConfidenceInterval class constructor parameters #937

Merged
merged 5 commits into from
Jan 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lmfit/confidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ class ConfidenceInterval:
"""Class used to calculate the confidence interval."""

def __init__(self, minimizer, result, p_names=None, prob_func=None,
sigmas=None, trace=False, verbose=False, maxiter=50):
sigmas=None, trace=False, verbose=False, min_rel_change=1e-5,
maxiter=50):
Anselmoo marked this conversation as resolved.
Show resolved Hide resolved
self.verbose = verbose
self.minimizer = minimizer
self.result = result
Expand Down Expand Up @@ -196,7 +197,7 @@ def __init__(self, minimizer, result, p_names=None, prob_func=None,

self.trace = trace
self.maxiter = maxiter
self.min_rel_change = 1e-5
self.min_rel_change = min_rel_change

if sigmas is None:
sigmas = [1, 2, 3]
Expand Down
Loading