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
 Fitting function in a loop
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jamieno10

Posts

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

Hi,

I'm new to origin and would appreciate any help.

I would like to fit my data using a custom function 100 times, each time with a random parameter vector. Is this possible in Origin?

Thanks!

Shirley_GZ

China
Posts

Posted - 03/31/2009 :  11:42:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Jamieno,

Do you want to test the stability of your function using random parameter values, without the initialization parameters by default?

After SR4, Origin offer some X-functions to do nonliear curve fitting, such as nlbegin, nlfit and nlend. You can write a loop using LabTalk scripts, please see some examples in this page:
http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:Curve_Fitting#Nonlinear_Fit

Any problem from you is welcome.
Shirley

Originlab Technical Service Team
Go to Top of Page

Laurie

USA
404 Posts

Posted - 04/01/2009 :  12:59:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Have you already defined your function, and fit one set of data with it? You could reuse the workbook, with the three sheets: source data sheet, FitNL report sheet, FitNLCurve sheet. The analysis has been saved in the workbook and you can set the Recalculate mode to Auto.

Click the link below, to learn how to set up a workbook for repetitive analysis:
http://www.originlab.com/index.aspx?s=9&lm=72&pid=1171

OriginLab Technical Support
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