The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Fitting with an Asymmetric Gaussian
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

pb

Italy
8 Posts

Posted - 12/13/2006 :  08:39:52 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version: 6.0 or 7.5 SR1
Operating System: Windows XP Pro

Hi,
I need to fit some data with an asymmetric Gaussian profile.
I have tried defining my own function in the non linear curve fit panel,

if x<xc
y=(A1/(w1*sqrt(PI/2)))*exp(-2*((x-xc)/w1)^2);
else
y=(A2/(w2*sqrt(PI/2)))*exp(-2*((x-xc)/w2)^2);

however, there is discontinuity in xc. In the constraint panel I have tried imposing that the max of the two gaussians has to be the same

(A1/(w1*sqrt(PI/2)))=(A2/(w2*sqrt(PI/2)));

but the constraint was not accepted (may be it has to be linear?)

Could you please help me to solve this discontinuity problem?

Many thanks

paola

Mike Buess

USA
3037 Posts

Posted - 12/13/2006 :  09:13:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Paolo,

Tutorial 11 > Defining a New Fitting Function describes specifically how to define the Asymmetric Gaussian.

Mike Buess
Origin WebRing Member
Go to Top of Page

pb

Italy
8 Posts

Posted - 12/13/2006 :  12:17:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Many thanks Mike !
Paola
Go to Top of Page

SvenP

29 Posts

Posted - 08/26/2010 :  06:03:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Mike Buess

Hi Paolo,

Tutorial 11 > Defining a New Fitting Function describes specifically how to define the Asymmetric Gaussian.

Mike Buess
Origin WebRing Member

Where can I find this?
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000