Skip to content

module interpolation

Interpolate over low confidence data


function interpolate_lowconf_points

interpolate_lowconf_points(
    edf: DataFrame,
    conf_threshold: float = 0.9,
    in_place: bool = True,
    rolling_window: bool = True,
    window_size: int = 3
) → DataFrame

Interpolate raw tracking points if their probabilities are available.

Args:

  • edf: pandas DataFrame containing the tracks to interpolate
  • conf_threshold: default 0.9. Confidence below which to count as uncertain, and to interpolate its value instead
  • in_place: default True. Whether to replace data in place
  • rolling_window: default True. Whether to use a rolling window to interpolate
  • window_size: default 3. The size of the rolling window to use

Returns: Pandas dataframe with the filtered raw columns. Returns None if opted for in_place modification


This file was automatically generated via lazydocs.