Skip to content
Myr

Fix "modifized" typo on modified_zscores docstring

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

authored by Charlie Tonneslan · committed by David Peter · parent a2d7094 · 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.

Trailers

  • Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>

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