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

n/a

Posts

Posted - 10/08/2006 :  9:02:12 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
A slightly annoying feature of the standard "fit polynomial" tool that I haven't found a way around is that it adds to the specified domain of the fitted curve. Basically I am trying to have the points of the fit match up with my data points on the x axis.

For example, I am specifying 0.318 as the "XMin" parameter and 0.415 as the "XMax" parameter and the results come out starting at 0.3083 and ending at 0.4247. I can recalculate it to include the differences, but it's kind of annoying.
Is there any way to change this behavior?

erica-cn

China
Posts

Posted - 10/08/2006 :  10:35:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi

In order to make the points of the fit match up with your data points on the x axis, you can try the Polynomial Fit Tool.

1) Select Tools:Polynomial Fit. This opens the dialog box.
2)On the settings tab, set Range Marge as 0.
It sets the percent outside of the data plot's X value range to create the fit curve (left and right).

Then you can select the data region need fitting, and then Click Fit on the Operation tab to perform a polynomial regression on the selected data plot according to the tool settings.

I hope it is helpful to your problem.

Erica Shang
OriginLab Technical Service



Edited by - erica-cn on 10/08/2006 10:54:08 PM
Go to Top of Page

Leo_Li

China
Posts

Posted - 10/09/2006 :  11:49:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
another quick solution:
1. in origin workspace, Alt+4 to open "code builder"
2. in code builder, browse and open PR.ogs (under Origin root folder)
3. find this line of script:
stat.MakeX.margin=10;
change it to:
stat.MakeX.margin=0;
by doing so, the range margin is ultimately set to be zero when you use "fit polynomial" tool.

try it.


Edited by - Leo_Li on 10/09/2006 11:51:57 PM
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