Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9863 > unrolled thread

Re: Peak Finding

Started byBill Rowe <readnews@sbcglobal.net>
First post2012-04-29 06:09 +0000
Last post2012-04-29 06:09 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Peak Finding Bill Rowe <readnews@sbcglobal.net> - 2012-04-29 06:09 +0000

#9863 — Re: Peak Finding

FromBill Rowe <readnews@sbcglobal.net>
Date2012-04-29 06:09 +0000
SubjectRe: Peak Finding
Message-ID<jnilu4$ahv$1@smc.vnet.net>
On 4/28/12 at 5:24 AM, richardgreco@gmail.com (merit_2) wrote:

>I am wondering if there are any peak finding notebooks around or
>examples.  I have been interested in doing some peak finding/peak
>detecting in Mathematica for a while, it has been challenging.  My
>specific area of application is x-ray detection.

The simplest method to find a peak in a set of data would be to
use the built-in function Ordering. That is:

In[4]:= data = RandomReal[1, {10}];
{#, data[[#]]} &[First@Ordering[data, -1]]

Out[5]= {4,0.895344}

Ordering returns the position of the maximum.

However, this simple approach is very sensitive to noise in the
data. With noise, the maximum value could be some distance from
the peak depending on the magnitude of the noise, magnitude of
the peak and sharpness of the peak.

To get around this, you will need to filter the data in some
manner. There are a number of possible approaches, fitting a
known function to the data, using wavelet based methods to
filter noise or fitting an orthogonal polynomial series to the
data. The choice of which approach to use depends on details of
the data.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web