Test Functions#
Basic Anomalies#
Flag NaNs in data. |
|
Find and flag temporal isolated groups of data. |
|
Flag jumps and drops in data. |
|
The function flags raises and drops in value courses, that exceed a certain threshold within a certain timespan. |
|
Flag constant data values. |
|
Flag low-variance data. |
Change Points and Noise#
Flag values that represent a system state transition. |
|
Label data where it changes significantly. |
|
Flag data chunks of length |
Gap filling#
Replace NaN by the aggregation result of the surrounding window. |
Multivariate Analysis#
Multivariate outlier detection.
Flag values where the Local Outlier Factor (LOF) exceeds cutoff. |
|
Flag data where its (rolling) Zscore exceeds a threshold. |
Sampling Alignment#
Convert time series to specified frequency. |
|
Project flags/history of |
|
Resample data points and flags to a regular frequency. |
|
Change a variables index. |
Data Products#
Score datapoints by an aggregation of the distances to their k nearest neighbors. |
|
Assign Local Outlier Factor (LOF). |
|
Assign "univariate" Local Outlier Factor (LOF). |
|
Calculate (rolling) Zscores. |
|
Fits a polynomial model to the data and calculate the residuals. |
|
Calculate the diff of a rolling-window function and the data. |
|
Fits a polynomial model to the data. |
|
Fits the data using the butterworth filter. |
Drift detection and correction#
Flags data that deviates from an avarage data course. |
|
Flags data that deviates from a reference course. |
|
The function corrects drifting behavior. |
|
Function fits the passed model to the different regimes in data[field] and tries to correct those values, that have assigned a negative label by data[cluster_field]. |
|
|
|
Flags anomalous regimes regarding to modelling regimes of |
|
A function to detect values belonging to an anomalous regime regarding modelling regimes of field. |
Flagtools#
|
Set whole column to a flag value. |
|
Assign UNFLAGGED value to all periods in field. |
|
Function sets a flag at all unflagged positions. |
|
Include flags listed in external data. |
|
Function does nothing but returning data and flags. |
|
Transfer Flags of one variable to another. |
|
Logical AND operation for Flags. |
|
Logical OR operation for Flags. |
Generic Functions#
Generate/process data with user defined functions. |
|
Flag data based on a given function. |
|
Logical AND operation for Flags. |
|
Logical OR operation for Flags. |
Outlier Detection#
Univariate Outlier Detection
Flag "univariate" Local Outlier Factor (LOF) exceeding cutoff. |
|
Flag outliers in 1-dimensional (score) data using the STRAY Algorithm. |
|
Flag outiers using the modified Z-score outlier detection method. |
|
A basic outlier test that works on regularly and irregularly sampled data. |
|
Function flags values exceeding the closed interval [ |
|
Flag values where the Local Outlier Factor (LOF) exceeds cutoff. |
|
Flag data where its (rolling) Zscore exceeds a threshold. |
Tools#
Make a copy of the data and flags of field. |
|
Drops field from the data and flags. |
|
Rename field in data and flags. |
|
Realizes masking within saqc. |
|
Plot data and flags or store plot to file. |