I haven't touched my signal processing courses for a long time and I forget how to work with these kinds of signals.
I have a signal that comes from a sensor that has 3 time periods.
The time vector of my signal is described by something like this:
\begin{bmatrix} \begin{align} &t\\ &t+T_0\\ &t + T_0 + T_1\\ &t + T_0 + T_1 + T_2\\ &t + 2 \cdot T_0 + T_1 + T_2\\ &t + 2 \cdot T_0 + 2 \cdot T_1 + T_2\\ &t + 2 \cdot T_0 + 2 \cdot T_1 + 2 \cdot T_2\\ &\vdots\\ &t + k \cdot T_0 + T_1 + T_2\\ &t + k \cdot T_0 + k \cdot T_1 + T_2\\ &t + k \cdot T_0 + k \cdot T_1 + k \cdot T_2 \end{align} \end{bmatrix}
With $ T_1 = 2 \cdot T_0 $ and $ T_2 = 3 \cdot T_0 $
I want to do some signal processing and implement an algorithm, but I need a constant time period in my signal to do so. I was wondering if there is a way to resample my signal ?
signal.resamplefunction ofscipyusing Python, it seems to be working for my case but I cannot explain it. – Caretaker2995 Nov 08 '22 at 14:11