how to detect multiple peak points in a list

Jul 15, 2013 at 4:41pm

how to detect multiple peak points in a list

Hi,

In the below list I would like to detect multiple peak points. I know I can use the object Lpeak the get ONE value, but what if there are multiple peak points? Is there an easy way of detecting multiple peak points? I simply need to know hoe many there are in a list, and possibly also their list positions.

Thanks for your help!
Ana

0. 0.101076 0.101076 0.101076 0.109013 0.109013 0.116949 0.116949 0.116949 0.124886 0.132822 0.132822 0.156632 0.164568 0.180441 0.188378 0.220124 0.220124 0.235997 0.235997 0.235997 0.27568 0.283616 0.315362 0.315362 0.323299 0.323299 0.323299 0.323299 0.307426 0.291553 0.267743 0.25187 0.220124 0.204251 0.204251 0.204251 0.188378 0.188378 0.204251 0.204251 0.204251 0.283616 0.323299 0.323299 0.355045 0.362981 0.394727 0.402664 0.4106 0.4106 0.4106 0.4106 0.331235 0.331235 0.331235 0.220124 0.220124 0.220124 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441 0.180441

#256137
Jul 15, 2013 at 7:02pm

this is a start (not perfect, but you should be able to adapt for your purposes)

<code>

– Pasted Max Patch, click to expand. –

</code>

#256141

You must be logged in to reply to this topic.