larvaworld.lib.util.nan_interpolation ===================================== .. py:module:: larvaworld.lib.util.nan_interpolation .. autoapi-nested-parse:: Methods for managing nans in timeseries data Functions --------- .. autoapisummary:: larvaworld.lib.util.nan_interpolation.interpolate_nans larvaworld.lib.util.nan_interpolation.parse_array_at_nans larvaworld.lib.util.nan_interpolation.apply_sos_filter_to_array_with_nans larvaworld.lib.util.nan_interpolation.apply_filter_to_array_with_nans_multidim larvaworld.lib.util.nan_interpolation.convex_hull Module Contents --------------- .. py:function:: interpolate_nans(y) .. py:function:: parse_array_at_nans(a) .. py:function:: apply_sos_filter_to_array_with_nans(sos, x, padlen: int = 6) .. py:function:: apply_filter_to_array_with_nans_multidim(a, freq: float, fr: float, N: int = 1) Power-spectrum of signal. Compute the power spectrum of a signal and its dominant frequency within some range. Parameters ---------- a : array 1D,2D or 3D Array : the array of timeseries to be filtered freq : float The cut-off frequency to set for the butter filter fr : float The framerate of the dataset N: int order of the butter filter Returns ------- yf : array Filtered array of same shape as a .. py:function:: convex_hull(xs=None, ys=None, N=None, interp_nans: bool = True)