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 for Programming
 Forum for Origin C
 Fit graphs with user defined fitting function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a.abc.b35

175 Posts

Posted - 01/26/2011 :  3:23:17 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi there. I am familiar with Origin C. I have written a fitting routine ,say "user", which I can use to fit my data. I have 100 such graphs where I do the same fitting and Origin does remember the last fit so that I dont have to initialize the parameters. I can straight way iterate and get the best fit for that file. Than I move to the next file and so on.
Now what I want is, instead of controlling this manually, I want to fit myself for the first file and i want to write a routine where all the subsequent files will be fitted automatically to the best fit. Can anyone help me with a routine for that ? i hope the question is clear.

AB

Penn

China
644 Posts

Posted - 01/26/2011 :  9:17:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi AB,

You can loop over all the data in your code for fitting. If you have your own initial parameter values, you can use the NLFitSession::SetParamValues method to set the initial parameter values. Please refer to the examples in Non-linear fitting and Using NLFitSession.

Penn
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