Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sronilsson committed Sep 25, 2024
1 parent 99aa53c commit 3f524db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
6 changes: 4 additions & 2 deletions simba/mixins/statistics_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -3709,7 +3711,7 @@ def calinski_harabasz(x: np.ndarray, y: np.ndarray) -> float:
.. note::
Modified from `scikit-learn <https://github.com/scikit-learn/scikit-learn/blob/8721245511de2f225ff5f9aa5f5fadce663cd4a3/sklearn/metrics/cluster/_unsupervised.py#L326>`_
The Calinski-Harabasz score (CH) is calculated as:
The Calinski-Harabasz score (CH) is calculated as:
.. math::
Expand Down

0 comments on commit 3f524db

Please sign in to comment.