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

Home » Public Forums » archive » fitting histogram distribution with double gaussian
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
fitting histogram distribution with double gaussian [message #86739] Fri, 29 November 2013 21:34 Go to next message
gunvicsin11 is currently offline  gunvicsin11
Messages: 93
Registered: November 2012
Member
Hello everyone,
I have a histogram distribution of my data set.
Then I have fit the histogram distribution with gaussian using the cghistoplot.
But in my 12 data set 8 data set fits well with single gaussian, but other four seems to be like it has to be fit with a double gaussian. So please let me know how to fit the histogram distribution with a double gaussian.
Is there any routine to do this.

thanking you in advance
sid
Re: fitting histogram distribution with double gaussian [message #86746 is a reply to message #86739] Sat, 30 November 2013 15:38 Go to previous messageGo to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Saturday, November 30, 2013 12:34:24 AM UTC-5, sid wrote:
> Hello everyone,
>
> I have a histogram distribution of my data set.
>
> Then I have fit the histogram distribution with gaussian using the cghistoplot.
>
> But in my 12 data set 8 data set fits well with single gaussian, but other four seems to be like it has to be fit with a double gaussian. So please let me know how to fit the histogram distribution with a double gaussian.

What are you using to fit a single gaussian?

The main problem with fitting multiple peaks is that you will need to spend more time setting the initial parameter values properly.

Craig
Re: fitting histogram distribution with double gaussian [message #86748 is a reply to message #86746] Sat, 30 November 2013 22:08 Go to previous messageGo to next message
gunvicsin11 is currently offline  gunvicsin11
Messages: 93
Registered: November 2012
Member
Respected sir,
I am using gaussfit for fitting single gaussian
thanking you
sid

On Sunday, December 1, 2013 5:08:46 AM UTC+5:30, Craig Markwardt wrote:
> On Saturday, November 30, 2013 12:34:24 AM UTC-5, sid wrote:
>
>> Hello everyone,
>
>>
>
>> I have a histogram distribution of my data set.
>
>>
>
>> Then I have fit the histogram distribution with gaussian using the cghistoplot.
>
>>
>
>> But in my 12 data set 8 data set fits well with single gaussian, but other four seems to be like it has to be fit with a double gaussian. So please let me know how to fit the histogram distribution with a double gaussian.
>
>
>
> What are you using to fit a single gaussian?
>
>
>
> The main problem with fitting multiple peaks is that you will need to spend more time setting the initial parameter values properly.
>
>
>
> Craig
Re: fitting histogram distribution with double gaussian [message #92641 is a reply to message #86739] Sat, 30 January 2016 10:00 Go to previous messageGo to next message
lesliemoy is currently offline  lesliemoy
Messages: 3
Registered: October 2015
Junior Member
Were you able to find code to fit a double Gaussian? I need such code too.
Thanks, Leslie
Re: fitting histogram distribution with double gaussian [message #92651 is a reply to message #86739] Tue, 02 February 2016 01:11 Go to previous message
lesliemoy is currently offline  lesliemoy
Messages: 3
Registered: October 2015
Junior Member
Were you able to find code to fit a double Gaussian? I need such code too.
Thanks, Leslie
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SVN connector missing
Next Topic: Interpolation routines

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

Current Time: Wed Oct 08 07:15:09 PDT 2025

Total time taken to generate the page: 0.00735 seconds