deepof.utils.smooth_mult_trajectory
- deepof.utils.smooth_mult_trajectory(series: array, alpha: int = 0, w_length: int = 11) ndarray
Return a smoothed a trajectory using a Savitzky-Golay 1D filter.
- Parameters:
series (numpy.ndarray) – 1D trajectory array with N (instances)
alpha (int) – 0 <= alpha < w_length; indicates the difference between the degree of the polynomial and the window length for the Savitzky-Golay filter used for smoothing. Higher values produce a worse fit, hence more smoothing.
w_length (int) – Length of the sliding window to which the filter fit. Higher values yield a coarser fit, hence more smoothing.
- Returns:
smoothed version of the input, with equal shape
- Return type:
smoothed_series (np.ndarray)