| raise_factor | float | `0.15` | Minimum relative value difference between two values to consider the latter as a spike candidate. See condition (1) |
| noise_thresh | float | `1` | Upper threshhold for noisyness of data surrounding potential spikes. See condition (3) |
| noise_thresh | float | `1` | Upper threshold for noisiness of data surrounding potential spikes. See condition (3) |
| noise_window | [offset string](docs/ParameterDescriptions.md#offset-strings) | `"12h"` | Determines the range of the time window of the "surrounding" data of a potential spike. See condition (3) |
| noise_func | [string](#noise-detection-functions) | `"CoVar"` | Function to calculate noisyness of data, surrounding potential spikes |
| noise_func | [string](#noise-detection-functions) | `"CoVar"` | Function to calculate noisiness of data, surrounding potential spikes |
| ploy_deg | integer | `2` | Order of the polynomial fit, applied with Savitsky-Golay-filter |
| filter_window | [offset string](docs/ParameterDescriptions.md#offset-strings) | `None` | Controls the range of the smoothing window applied with the Savitsky-Golay filter. If `None` (default), the window size will be two times the sampling rate (thus, covering 3 values). If unsure, do not change that value |
The function flags spikes by evaluating the timeseries' derivatives
The function flags spikes by evaluating the timeseries' derivatives
and applying various conditions to them.
The value $`x_{k}`$ of a timeseries $`x_t`$ with
The value $`x_{k}`$ of a timeseries $`x_t`$ with
timestamps $`t_i`$ is considered a spikes, if:
1. The quotient to its preceeding datapoint exceeds a certain bound:
1. The quotient to its preceding datapoint exceeds a certain bound:
* $` |\frac{x_k}{x_{k-1}}| > 1 + `$ `raise_factor`, or