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


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

Re: Peak Finding

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Peak Finding
Date 2012-04-29 06:09 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jnilu4$ahv$1@smc.vnet.net> (permalink)

Show all headers | View raw


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.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web