-
Peter Lünenschloß authored7ad3f992
FormalDescriptions.md 1.92 KiB
Mathematical descriptions
A collection of detailed mathematical descriptions.
Index
spikes_flagRaise
The value x_{k}
of a time series x
with associated
timestamps t_i
, is flagged a rise, if:
- There is any value
x_{s}
, preceedingx_{k}
withinraise_window
range, so that:-
M = |x_k - x_s | >
thresh
> 0
-
- The weighted average
\mu^*
of the values, preceedingx_{k}
withinaverage_window
range indicates, thatx_{k}
doesnt return from an outliererish value course, meaning that:-
x_k > \mu^* + ( M
/mean_raise_factor
)
-
- Additionally, if
min_slope
is notNone
,x_{k}
is checked for being sufficiently divergent from its very predecessorx_{k-1}
, meaning that, it is additionally checked if:-
x_k - x_{k-1} >
min_slope
-
t_k - t_{k-1} >
min_slope_weight
*intended_freq
-
The weighted average \mu^*
was calculated with weights w_{i}
, defined by:
-
w_{i} = (t_i - t_{i-1})
/intended_freq
, if(t_i - t_{i-1})
<intended_freq
andw_i =1
otherwise.
The value x_{k}
of a time series x_t
with
timestamps t_i
is considered a spikes, if:
spikes_flagSpektrumBased
- The quotient to its preceding data point exceeds a certain bound:
-
|\frac{x_k}{x_{k-1}}| > 1 +
raise_factor
, or -
|\frac{x_k}{x_{k-1}}| < 1 -
raise_factor
-
- The quotient of the second derivative
x''
, at the preceding and subsequent timestamps is close enough to 1:-
|\frac{x''_{k-1}}{x''_{k+1}} | > 1 -
deriv_factor
, and -
|\frac{x''_{k-1}}{x''_{k+1}} | < 1 +
deriv_factor
-
- The dataset
X = x_i, ..., x_{k-1}, x_{k+1}, ..., x_j
, with|t_{k-1} - t_i| = |t_j - t_{k+1}| =
noise_window
fulfills the following condition:noise_func
(X) <
noise_thresh