Skip to content
Myr

Merge pull request #883 from c-tonneslan/docs/modifized-typo

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix "modifized" typo on modified_zscores docstring

authored by David Peter · committed by GitHub · parents 0a61e33, 4917c55 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/quantity/statistics.rs+1 added-1 removed
104 unmodified lines
105 // before taking the square root also preserves exported floating-point values.106 Q::unsafe_from_raw_value((sum / (values.len() as f64 - 1.0)).sqrt())107}108109/// Compute modifized Z-scores for a given sample. A (unmodified) Z-score is defined by109/// Compute modified Z-scores for a given sample. A (unmodified) Z-score is defined by110/// `(x_i - x_mean)/x_stddev` whereas the modified Z-score is defined by `(x_i - x_median)/MAD`111/// where MAD is the median absolute deviation.112///113/// References:
112 unmodified lines