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
 automation of 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

flirt

USA
Posts

Posted - 04/12/2005 :  7:33:18 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi guys,

Can I fit many curves automatically with a user defined function? I know in "advanced fitting tool" one can add multiple datasets and refine together, but it seems too hard for me to add all the datasets one by one. Maybe somebody has a script to do this? All the datasets are in one worksheet, the change of parameters between neighbouring curves is not big, and the initial values are reasonably given. Can somebody give me this script? Also, I want to extract all the parameters.

The other question is the noise for each curve is big, so i want to do average of nearby curves. Don't know whether this can be done with just a specification, or whether Origin can remove the noise wisely. But this is not important, I can do in Matlab.

I got a lot of help here, thanks for your help greatly.

flirt

USA
Posts

Posted - 04/12/2005 :  8:09:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
One point I forgot to mention is, if the parameter obtained for the previous curve can be used as the initial for the next one, convergence will be reached quicker.
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 04/12/2005 :  8:48:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you have Origin 7.0 or higher you can use this add-on on OriginLab's File Exchange for the multiple-curve fitting part. (A separate Labtalk script or Origin C function will be necessary for signal averaging.)...

http://www.originlab.com/fileexchange/details.aspx?fid=56

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 04/12/2005 8:56:48 PM

Edited by - Mike Buess on 04/12/2005 8:59:19 PM
Go to Top of Page

flirt

USA
Posts

Posted - 04/14/2005 :  12:12:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Mike, it really works! Thanks very much.
The only problem is it is too slow, need about 2hr for 50 datasets. Is it possible to make it quicker?
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 04/14/2005 :  12:35:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The mfseq2 function works as you suggested in your 2nd post... it uses the parameters obtained for the previous curve to initialized the next curve. It takes less than 20 seconds to fit 64 512-point curves to the Lorentz function in Origin 7.5. If you are using a custom fitting function try checking the "Use Origin C" option on the Function Definition page.

Mike Buess
Origin WebRing Member
Go to Top of Page

Younger2008

USA
Posts

Posted - 04/15/2005 :  03:25:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
something wrong when compiling MutiFit.c. The process is like the following:

compiling...
Origin.C
compiling...
LT_wks.c
compiling...
sys_utils.c
compiling...
internal.c
compiling...
analysis_utils.c
compiling...
GetNBox.c
C:\Program Files\OriginLab\OriginPro75\OriginC\originlab\GridControl.h(793) :Error, function or variable GridControl not found
C:\Program Files\OriginLab\OriginPro75\OriginC\originlab\GridControl.h(793) :Error, general compile error
C:\Program Files\OriginLab\OriginPro75\OriginC\originlab\GridControl.h(791) :Error, error(s) found in compiling function Init
compiling...
tree_utils.c
compiling...
page_utils.c
compiling...
matrix.c
compiling...
OriginEvents.c
compiling...
MultiFit.c
compiling...
theme_utils.c
compiling...
LT_math.c
compiling...
LT_PE.c

Compiling errors found, linking cannot start!


Something must be wrong when compiling GetNBox.c, but I donnt know how? Any help for this?
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 04/15/2005 :  07:42:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
GetNBox.c is a system file supplied by OriginLab... no connection with MultiFit.c. (If you remove MultiFit from your workspace you'll still get that compiler error.) You need to resolve the error but it might be necessary to contact OriginLab support directly.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 04/15/2005 08:16:39 AM
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