ibex.core.utils.downsample_data¶
-
ibex.core.utils.downsample_data(data: list, target_size: int, method: str | None =
None, x=None, single_x_axis=True)¶ Downsamples list of values :param data: data to be down-sampled :param target_size: desired size of data (in elements per dimension) :param method: Downsampling method. One of DownsamplingMethods (Enum) possible values or None :param x: x-axis values (coordinate) to be downsampled :param single_x_axis: determines if there is common x axis for all np.arrays in data (e.g. single time vector for all)
Returns tuple (downsapled_coordinate, downsampled_data)