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
 Combine different fitting functions

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
pb Posted - 01/18/2002 : 11:29:38 AM
I would like to fit a dataset using the sum of two or more fitting functions, already defined in Origin (6.0). For example, an exponential decay and a gaussian.
Do I have to re-write a new fitting function or may be there is an easy way to combine them while selecting the fitting function in the non-linear curve fit?
Thanks
Paola
2   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 01/21/2002 : 11:10:53 AM
Hi Paola,

For example, to fit a gaussian with an exponential background, you can define your function
as

expdec1(x,y0,A1,t1)+gaussamp(x,0,xc,w,A)

This is a combination of the built-in functions expdec1(x,y0,A1,t1) and gaussamp(x,y0,xc,w,A). Note that both functions have an offset parameter, and in this example the offset is handled in the first function and is set to zero in the second function.

Using a combination of built-in functions will result in much faster operations in the fitter.

In the upcoming version of 7.0, we are introducing a compiler that will provide much more speed and flexibility for fitting with user-defined functions. The above approach (combining built-in functions) will of course work as well in 7.0

For more information on 7.0, please visit:
http://www.originlab.com/www/products/origin7/index.asp

Easwar
OriginLab.


Edited by - easwar on 01/21/2002 12:59:23
Lorraine Posted - 01/18/2002 : 1:27:48 PM
While you cannot make permanent changes to pre-existing fitting functions in Origin, you can copy all the functions (Gaussian, ExpDecay, etc.) using CTRL-C/CTRL-V into i.e., Notepad then paste them all together into a User Defined fitting function you create on your own. This only has to be set up once, then can be saved as a User Defined Fitting function for use in future sessions of Origin. If your function starts with y= don't forget to set the form to y-script.

Lorraine
OriginLab Technical Support

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