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 bd3642f commit ec0597c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions simba/mixins/statistics_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def independent_samples_t(
@staticmethod
@njit("(float64[:], float64[:])", cache=True)
def cohens_d(sample_1: np.ndarray, sample_2: np.ndarray) -> float:
"""

r"""
Jitted compute of Cohen's d between two distributions.
Cohen's d is a measure of effect size that quantifies the difference between the means of two distributions in terms of their standard deviation. It is calculated as the difference between the means of the two distributions divided by the pooled standard deviation.
Expand Down Expand Up @@ -1240,7 +1241,8 @@ def rolling_levenes(
@staticmethod
@jit(nopython=True, cache=True)
def brunner_munzel(sample_1: np.ndarray, sample_2: np.ndarray) -> float:
"""

r"""
Jitted compute of Brunner-Munzel W between two distributions.
The Brunner-Munzel W statistic compares the central tendency and the spread of two independent samples. It is useful
Expand Down Expand Up @@ -3632,7 +3634,8 @@ def dunn_index(x: np.ndarray, y: np.ndarray, sample: Optional[float] = None) ->


def davis_bouldin(x: np.ndarray, y: np.ndarray) -> float:
"""

r"""
Calculate the Davis-Bouldin index for evaluating clustering performance.
Davis-Bouldin index measures the clustering quality based on the within-cluster
Expand Down Expand Up @@ -3848,7 +3851,8 @@ def fowlkes_mallows(x: np.ndarray, y: np.ndarray) -> float:

@staticmethod
def adjusted_mutual_info(x: np.ndarray, y: np.ndarray) -> float:
"""

r"""
Calculate the Adjusted Mutual Information (AMI) between two clusterings as a measure of similarity.
Calculates the Adjusted Mutual Information (AMI) between two sets of cluster labels.
Expand Down Expand Up @@ -3890,7 +3894,8 @@ def adjusted_mutual_info(x: np.ndarray, y: np.ndarray) -> float:
@staticmethod
@jit(nopython=True)
def czebyshev_distance(sample_1: np.ndarray, sample_2: np.ndarray) -> float:
"""

r"""
Calculate the Czebyshev distance between two N-dimensional samples.
The Czebyshev distance is defined as the maximum absolute difference
Expand All @@ -3899,7 +3904,7 @@ def czebyshev_distance(sample_1: np.ndarray, sample_2: np.ndarray) -> float:
.. note::
Normalize arrays sample_1 and sample_2 before passing it to ensure accurate results.
The equation for the Czebyshev distance is given by :math:`D_\infty(p, q) = \max_i \left| p_i - q_i \right|`.
The equation for the Czebyshev distance is given by :math:`D_\infty(p, q) = \max_i \left| p_i - q_i \right|`.
.. seealso:
:func:`simba.mixins.statistics_mixin.Statistics.sliding_czebyshev_distance`
Expand Down

0 comments on commit ec0597c

Please sign in to comment.