prsctrl.data.calc.find_outliers#

find_outliers(data: ndarray, threshold: float = 0.6, min_points=20) list[int][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