Closed dkrako closed 1 year ago
Computing the acceleration would be very nice to have.
The first iteration should at least use the savgol_filter from scipy: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.savgol_filter.html#scipy.signal.savgol_filter
savgol_filter
This could be the signature:
def pos2acc( arr: list[float] | list[list[float]] | np.ndarray, sampling_rate: float = 1000, window_length: int = 7, polyorder:int = 2, delta: float = 1.0, mode: str = 'interp', cval: float = 0.0, ) -> np.ndarray:
closed with #424
Description of the problem
Computing the acceleration would be very nice to have.
Description of a solution
The first iteration should at least use the
savgol_filter
from scipy: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.savgol_filter.html#scipy.signal.savgol_filterMinimum acceptance criteria
savgol_filter
Sample Code
This could be the signature: