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
 Automated 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

jd0331

9 Posts

Posted - 08/03/2009 :  3:22:01 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 7.5 SR0
Operating System: Windows XP

Hi, I have over 50 sets of data and would like to perform the curve fitting for each set.
When I performed the fitting, I usually iterated it about 80 times by clicking 100 Iter. button again and again to mimimize the Chi^2 and maximize the R^2.

However, the problem is that I now have too many data sets to do it.
It takes so long time that I cannot do anything while I was fitting and analyzing them.
Additionally, it takes pretty long time to fit a single set as it contains a lot of data columns.

Is there a function that allows us to perform curve fitting automatically after inserting many sets of data?
Can I get the each fitting result after running the function?
If so, could you let me know how to do it please?
As I want the high-quality fitting results, I would like to make it iterate more than 100 times to minimize chi^2 and maximize R^2, and get each result of data sets after finishing the fitting.

cpyang

USA
1406 Posts

Posted - 08/03/2009 :  7:11:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think for what you need to do, you need to use Origin 8.

See this example

http://ocwiki.originlab.com/index.php?title=OriginC:Fit_Multiple_XY_Data_in_a_loop

I tried with the sample Gaussian.dat with has only 50 points and I duplicated it into 1000 columns and the code fit all 1000 columns in less then 30 sec.

If you want to see LabTalk only solution, we can make similar example as well.

CP
Go to Top of Page

Sophy

China
Posts

Posted - 08/04/2009 :  06:17:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, In Origin8 SR2, we provide a new set of X-Functions to control the NLFit engine, please have a look at the following link:

http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:Curve_Fitting#Fit_Multiple_Columns_in_a_Worksheet

BTW, I tried this set of X-Functions to fit 1000 datasets of 50 points, it cost me about 380 seconds, that is much slower than when use NLFitSession in OC code, so it is strongly recommended that customers use the OC solution with NLFitSession.
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