Single dimension peak fitting
Posted
by bufferz
on Stack Overflow
See other posts from Stack Overflow
or by bufferz
Published on 2010-05-25T18:58:10Z
Indexed on
2010/05/25
19:21 UTC
Read the original article
Hit count: 295
I have a single dimensional array of floating point values (c# doubles FYI) and I need to find the "peak" of the values ... as if graphed.
I can't just take the highest value, as the peak is actually a plateau that has small fluctuations. This plateau is in the middle of a bunch of noise. I'm looking find a solution that would 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,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
where the peak is somewhere in the bolded section.
Any ideas?
© Stack Overflow or respective owner