prsctrl.data.calc.remove_outliers#

remove_outliers(data: ndarray, threshold: float = 0.6, min_points=20)[source]#

Set outlier points to nan.

An outlier point is a point that deviates more that full_range * threshold from the left AND right neighbor. full_range is difference between the maximum and minimum value