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
 All Forums
 Origin Forum
 Origin Forum
 automation of curve fitting

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
flirt Posted - 04/12/2005 : 7:33:18 PM
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.
6   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 04/15/2005 : 07:42:20 AM
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
Younger2008 Posted - 04/15/2005 : 03:25:05 AM
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?
Mike Buess Posted - 04/14/2005 : 12:35:15 PM
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
flirt Posted - 04/14/2005 : 12:12:48 PM
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?
Mike Buess Posted - 04/12/2005 : 8:48:07 PM
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
flirt Posted - 04/12/2005 : 8:09:29 PM
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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000