You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result = running_quantile(v, p, w, nan_mode=SkipNaNs())
44
+
45
+
Computes the running `p`-th quantile of the vector `v` with window `w`, where `w` is an odd window length, or a range of offsets.
46
+
Specifically,
47
+
- if `w` is a `AbstractUnitRange`, `result[i]` is the `p`-th quantile of `v[(i .+ w) ∩ eachindex(v)]`, where `NaN`s are handled according to `nan_mode`:
48
+
- `nan_mode==SkipNaN()`: `NaN` values are ignored; quantile is computed over non-`NaN`s
49
+
- `nan_mode==PropagateNaNs()`: the result is `NaN` whenever the input window contains `NaN`
50
+
- `nan_mode==ErrOnNaN()`: an error is raise if at least one input window contains `NaN`
51
+
- if `w` is an odd integer, a centered window of length `w` is used, namely `-w÷2:w÷2`
0 commit comments