I would like to find a specific set of maximum points in a collection of data I create.
Visually it looks something like this:
Where the blue points are my data, the green line is the plot, and in yellow I have marked which max points I want to find.
So far I have tried to "smooth" the function via local average and a rolling window but that modifies the max values and does not quite smooth it out enough to see each of those noisy peaks as one single max value.
Is there some transform I could do in code to this array of number to allow for easier extraction of such values?
I am writing in C#. The closest posts I could find to what I am looking for were for R which I know nothing about unfortunately.