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
 Curve fitting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

nzb109

USA
3 Posts

Posted - 12/30/2008 :  10:43:46 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and SR (Select Help-->About Origin):
Operating System:xp
Hello
I want to fit my data , using two functions as below:-
a)I know a series of (x,y) pairs for each point on x-axis
b)The second function is an polynomial function of unknown degree and coefficients.
Can i fit my data as a sum of the known (a) and unknown function(b)
Regards and Thanks
nzb


scunque

5 Posts

Posted - 01/13/2009 :  1:14:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you have plotted data, you can use that data as if it were a function. Origin does not have an 'unknown degree' polynomial function so you must use one with specific degree like Poly4 or Poly5 or the ninth degree equivalent Poly which internally is called PolyN.

So create a function with Parameter Names
a0,a1,a2,a3,a4,a5,a6,a7,a8,a9

defined as
y = book1_B(x) + polyn(x,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9);
(Replace book1_b with your dataplot)

and using the parameter initialization copied from Poly.
You must use Y-Script as the Function Form.

Note that Poly requires at least 9 datapoints and you will need at least 11 points to get any degrees of freedom (i.e. error calculations)
Also Polynomial is usually a poor choice for fitting and this function will be swamped by the plotted data part. The plotted data should represent your ideal curve.
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