Skip to content

Commit

Permalink
Fix hyperlink in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Aug 2, 2023
1 parent 9352061 commit 1ada67f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/source/intro_robuststats.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ used as a robust measure of central tendency.

The median is used by default in the alignment routines of {ref}`coregistration` and {ref}`biascorr`.

(robuststats-nmad)=

### Dispersion

The [statistical dispersion](https://en.wikipedia.org/wiki/Statistical_dispersion) represents the spread of a sample,
and is core to the analysis of sample precision (see {ref}`intro`). It is typically measured by the [standard deviation](https://en.wikipedia.org/wiki/Standard_deviation).
However, very much like the mean, the standard deviation is a measure sensitive to outliers.

(robuststats-nmad)=

The median equivalent of a standard deviation is the normalized median absolute deviation (NMAD), which corresponds to the [median absolute deviation](https://en.wikipedia.org/wiki/Median_absolute_deviation) scaled by a factor of ~1.4826 to match the dispersion of a
normal distribution. It has been shown to provide more robust measures of dispersion with outliers when working
with DEMs (e.g., [Höhle and Höhle (2009)](https://doi.org/10.1016/j.isprsjprs.2009.02.003)).
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/plot_standardization.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

# %%
# We perform a scale-correction for the standardization, to ensure that the spread of the data is exactly 1.
# The NMAD is used as a robust measure for the spread (see :ref:`robuststats-nmad`).
# The NMAD is used as a robust measure for the spread (see :ref:`robuststats-nmad`).
print(f"NMAD before scale-correction: {nmad(z_dh.data):.1f}")
scale_fac_std = nmad(z_dh.data)
z_dh = z_dh / scale_fac_std
Expand Down

0 comments on commit 1ada67f

Please sign in to comment.