I need help with this (seemingly simple) task.
Mainly I need identify distances between peaks of some measured signal and I know a priori that its behavior must be sin/cos function, but on the practice I have some distored signal (shown in the attached file) and as a result there are others not relevant peaks. So, the fit to the sin is good solution for me.
Relevant reference/link/MATLAB code/Python code are welcome. Thank you in advance!