I have a one-dimensional array of floating point values (C # doubles FYI), and I need to find the "peak" of the values ... as if graph.
I cannot just take the highest value, since the peak is actually a plateau with slight fluctuations. This plateau is in the midst of noise. I am looking for a solution that will give me the center of this plateau.
An example array might look like this:
1,2,1,1,2,1,3,2,4,4,4,4,5,6, 8,8,8,8,7,8,7,9,7 , 5,4,4, 3,3,2,2,1,1,1,1,1,2,1,1,1,1,1
where the peak is somewhere in the bold section.
Any ideas?