Closed dkrako closed 11 months ago
Having a way to smooth data would be 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 smooth( arr: list[float] | list[list[float]] | np.ndarray, window_length: int = 7, polyorder:int = 2, delta: float = 1.0, ) -> np.ndarray:
Here are some more suggestions for methods to start with
excellent! you can implement any additional method you like.
Description of the problem
Having a way to smooth data would be 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: