File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 71
71
# so a file named "default.css" will overwrite the builtin "default.css".
72
72
html_static_path = ["_static" ]
73
73
74
- # http://read-the-docs.readthedocs.org/en/latest/theme.html#how-do-i-use-this-locally-and-on-read-the-docs
75
- # on_rtd is whether we are on readthedocs.org
76
- on_rtd = os .environ .get ("READTHEDOCS" , None ) == "True"
77
- if not on_rtd :
78
- # Import and set the theme if we're building docs locally
79
- import sphinx_rtd_theme
80
-
81
- html_theme = "sphinx_rtd_theme"
82
- html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
74
+ html_theme = "sphinx_rtd_theme"
83
75
84
76
nbsphinx_kernel_name = "python3"
85
77
nbsphinx_execute_arguments = [
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ def poisson_chi2(n: ArrayLike, mu: ArrayLike) -> float:
254
254
n : array-like
255
255
Observed counts.
256
256
mu : array-like
257
- Expected counts per bin. Must satisfy sum(mu) == sum(n).
257
+ Expected counts per bin.
258
258
259
259
Returns
260
260
-------
@@ -265,6 +265,8 @@ def poisson_chi2(n: ArrayLike, mu: ArrayLike) -> float:
265
265
-----
266
266
The implementation makes the result asymptotically chi2-distributed,
267
267
which helps to maximise the numerical accuracy for Minuit.
268
+
269
+ If sum(mu) == sum(n), the result is equal to :func:`multinomial_chi2`.
268
270
"""
269
271
n , mu = np .atleast_1d (n , mu )
270
272
return 2 * np .sum (n * (log_or_zero (n ) - log_or_zero (mu )) + mu - n )
@@ -286,7 +288,7 @@ def multinomial_chi2(n: ArrayLike, mu: ArrayLike) -> float:
286
288
n : array-like
287
289
Observed counts.
288
290
mu : array-like
289
- Expected counts.
291
+ Expected counts. Must satisfy sum(mu) == sum(n).
290
292
291
293
Returns
292
294
-------
You can’t perform that action at this time.
0 commit comments