larvaworld.lib.util.nan_interpolation
Methods for managing nans in timeseries data
Functions
|
|
|
Power-spectrum of signal. |
|
Module Contents
- larvaworld.lib.util.nan_interpolation.interpolate_nans(y)
- larvaworld.lib.util.nan_interpolation.parse_array_at_nans(a)
- larvaworld.lib.util.nan_interpolation.apply_sos_filter_to_array_with_nans(sos, x, padlen: int = 6)
- larvaworld.lib.util.nan_interpolation.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
- aarray
1D,2D or 3D Array : the array of timeseries to be filtered
- freqfloat
The cut-off frequency to set for the butter filter
- frfloat
The framerate of the dataset
- N: int
order of the butter filter
Returns
- yfarray
Filtered array of same shape as a
- larvaworld.lib.util.nan_interpolation.convex_hull(xs=None, ys=None, N=None, interp_nans: bool = True)