Commit 545b2681 authored by lucas_miranda's avatar lucas_miranda
Browse files

Implemented outlier interpolation

parent cadd739b
Pipeline #92670 failed with stage
in 28 minutes and 47 seconds
......@@ -55,7 +55,7 @@ class project:
arena_dims: tuple = (1,),
exclude_bodyparts: List = tuple([""]),
exp_conditions: dict = None,
interpolate_outliers: str = "MA",
interpolate_outliers: bool = True,
interpolation_limit: int = 5,
interpolation_std: int = 2,
likelihood_tol: float = 0.75,
......
......@@ -358,6 +358,7 @@ def moving_average(time_series: pd.Series, N: int = 5):
- moving_avg (pd.Series): univariate moving average over time_series"""
moving_avg = np.convolve(time_series, np.ones(N) / N, mode="same")
return moving_avg
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment