hello all, I have some numbers, these numbers can be plot and we can found there is a peak, at first this ploted line was increasing, then decreasing, I want to get the peak point among these number, but this line is not absolute increasing and decreasing, there are some small "up" and "drop", it's a sawtooth line. Is there is a R package or perl module would be great helpful to me, could somebody help me?
for example, these number:
1, 2 ,4, 3, 5, 7, 5, 8, 10, 9, 7, 8, 5, 6, 4, 2, 3, 1
I want to get "10".
Add: there are not only one peak, sometimes two or more peak, such as:
1, 2 ,4, 3, 5, 7, 5, 8, 10, 9, 7, 8, 5, 6, 4, 2, 3, 1, 0, 0, 0, 0, 0, 2, 4, 3, 5, 8, 7, 6, 2, 3, 1
I want to get 10 and 8
thanks, I found I had described the issue incompletely, there are two or more peaks in my data.