From 3f524db037f2230b91ea3668f978acae137cfd7a Mon Sep 17 00:00:00 2001 From: sronilsson Date: Tue, 24 Sep 2024 20:43:34 -0400 Subject: [PATCH] docs --- docs/conf.py | 1 + simba/mixins/statistics_mixin.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 57d5c9a8f..241e9deaf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -35,6 +35,7 @@ 'sphinx.ext.autosummary'] #mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML" +mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML" intersphinx_mapping = { diff --git a/simba/mixins/statistics_mixin.py b/simba/mixins/statistics_mixin.py index c2c470c53..29e603b32 100644 --- a/simba/mixins/statistics_mixin.py +++ b/simba/mixins/statistics_mixin.py @@ -1252,7 +1252,7 @@ def brunner_munzel(sample_1: np.ndarray, sample_2: np.ndarray) -> float: .. math:: - W = -\\frac{{n_x \\cdot n_y \\cdot (\bar{R}_y - \bar{R}_x)}}{{(n_x + n_y) \\cdot \\sqrt{{n_x \\cdot S_x + n_y \\cdot S_y}}}} + W = -\frac{{n_x \\cdot n_y \\cdot (\bar{R}_y - \bar{R}_x)}}{{(n_x + n_y) \\cdot \\sqrt{{n_x \\cdot S_x + n_y \\cdot S_y}}}} where: - :math:`n_x` and :math:`n_y` are the sizes of sample_1 and sample_2 respectively, @@ -3318,6 +3318,8 @@ def cochrans_q(data: np.ndarray) -> Tuple[float, float]: Useful background: https://psych.unl.edu/psycrs/handcomp/hccochran.PDF :math:`Q = \frac{(k - 1) \left( kG^2 - \left( \sum_{j=1}^{k} C_j \right)^2 \right)}{kR - S}` + :math:`Q = \frac{(k - 1) \left( kG^2 - \left( \sum_{j=1}^{k} C_j \right)^2 \right)}{kR - S}` + where: @@ -3709,7 +3711,7 @@ def calinski_harabasz(x: np.ndarray, y: np.ndarray) -> float: .. note:: Modified from `scikit-learn `_ - The Calinski-Harabasz score (CH) is calculated as: + The Calinski-Harabasz score (CH) is calculated as: .. math::