| window | int/[offsetstring](docs/ParameterDescriptions.md#offset-strings) | `"1h"` | size of the sliding window, where the modified Z-score is applied on |
| z | float | `3.5` | z-parameter of the modified Z-score |
This functions flags outliers by simple median absolute deviation test.
The *modified Z-score* [1] is used to detect outliers. Values are flagged if
they fulfill the following condition within a sliding window:
The *modified Z-score* [1] is used to detect outlier.
All values are flagged as outlier, if in any slice of the sliding window, a value fulfills:
```math
0.6745 * |x - M| > mad * z > 0
```
with $`x, M, mad, z`$: window data, window median, window median absolute deviation, `z`.
The window is moved by one frequency step.
with:
| $`x`$ | window data |
| $`M`$ | window median |
| $`mad`$ | window median absolute deviation |
| $`z`$ | z-parameter |
The window is moved by one time stamp at a time.
Note: This function should only be applied on normalized data.