Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Oct 12, 2024
1 parent 7f0d336 commit 2bc7e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iminuit/cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def poisson_chi2(n: ArrayLike, mu: ArrayLike) -> float:
The implementation makes the result asymptotically chi2-distributed,
which helps to maximise the numerical accuracy for Minuit.
If sum(mu) == sum(n), the result is equal to :func:`multinomial_chi2`
If sum(mu) == sum(n), the result is equal to :func:`multinomial_chi2`.
"""
n, mu = np.atleast_1d(n, mu)
return 2 * np.sum(n * (log_or_zero(n) - log_or_zero(mu)) + mu - n)
Expand Down

0 comments on commit 2bc7e8a

Please sign in to comment.