comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » peak finding with Guassfit
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
peak finding with Guassfit [message #86891] Tue, 10 December 2013 09:57 Go to next message
Adele is currently offline  Adele
Messages: 4
Registered: September 2013
Junior Member
I am working with 1D data, need to find two peak positions of each data, these two peaks close to each other.

Currently, I've been using a gaussian fit with 6 parameters, and using
the center of the Gaussian as the peak location. For each data set,the proximate peak location and fit width were given, gaussfit was used in the range of (peak-width, peak+width). For some data set the results are good, but for other data set the center of gaussian was shifted even out of the given range. These data sets do not have significant difference.

Does anyone have any idea about this situation? Thank you very much!
Re: peak finding with Guassfit [message #86899 is a reply to message #86891] Tue, 10 December 2013 15:23 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Tuesday, December 10, 2013 11:57:49 AM UTC-6, Adele wrote:
> I am working with 1D data, need to find two peak positions of each data, these two peaks close to each other.
>
> the center of the Gaussian as the peak location.
>

I'm confused here - does the data have two Gaussians or one?

If one, do you need all six terms? In other words, do you have any a priori information on the background?
Re: peak finding with Guassfit [message #86908 is a reply to message #86899] Wed, 11 December 2013 06:36 Go to previous message
Adele is currently offline  Adele
Messages: 4
Registered: September 2013
Junior Member
On Tuesday, December 10, 2013 6:23:24 PM UTC-5, Phillip Bitzer wrote:
> On Tuesday, December 10, 2013 11:57:49 AM UTC-6, Adele wrote:
>
>> I am working with 1D data, need to find two peak positions of each data, these two peaks close to each other.
>
>>
>
>> the center of the Gaussian as the peak location.
>
>>
>
>
>
> I'm confused here - does the data have two Gaussians or one?
>
> the data has two Gaussians which close to each other.
>
> If one, do you need all six terms? In other words, do you have any a priori information on the background?

I extended the fit width then Gaussian fit works well for both data. Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: object graphics, exploding axis text, how to fix by explicitly setting char_dimens?
Next Topic: Thermal modelisation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:39:16 PDT 2025

Total time taken to generate the page: 0.00386 seconds