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
 Origin Forum
 Two harmonic components
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lrsosa@ser

Mexico
2 Posts

Posted - 12/04/2003 :  09:53:34 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Question:

I am fitting my data using the equation y = M + A*cos[(x-H)/p] with the Advanced Fitting Tool in the Non-linear Curve Fit option of OriginPro 7.0 SR4.

My data usually show one principal component but in other cases two harmonic components. I would like to know if there is a way to modify the equation above mentioned in order to do the best fit for the second case.
Please send me your assistence. Many thanks.

Leonardo Rodrguez
lrsosa@servidor.unam.mx

easwar

USA
1965 Posts

Posted - 12/04/2003 :  3:11:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Leonardo,

If there is only one harmonic present in the data at a time, you can try placing a constraint on the parameter p - which seems to be the one that determines the harmonicity in your equation - so that the fitter varies it only within a range of expected values for the harmonic.

If the data contains a mixture of harmonics, you can rewrite the equation, for example, like below:
y = M + A1*cos((x-H)/p1)+A2*cos((x-H)/p2)+A3*cos((x-H)/p3);
where I am assuming the offset H is same for all three harmonics and just the frequency and amplitudes are different. You can then further place constraints on p1, p2, p3 as well.

To place constraints (upper, lower bounds), go to the Option|Constraints menu item of the NLSF tool.

Easwar
OriginLab.

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