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 for Programming
 Forum for Origin C
 User-defined 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
biglemon Posted - 09/09/2004 : 03:02:03 AM
Origin Version (Select Help-->About Origin): 7.5
Operating System:Windwos 2000

Hi, everyone,

I'm a new Origin user, working on neuroscience.

As we know, compared with the built-in function, the user-defined curve fitting function must be well initiated in order to get the well fitted result. My question is, how to let the user-defined function work as well as the built-in functions.

Thank you!
2   L A T E S T    R E P L I E S    (Newest First)
biglemon Posted - 09/09/2004 : 9:07:59 PM
Thank you very much!

quote:

Hello,

The parameter initialization for our built-in fitting functions is coded in Origin C. If you browse to any function in the advanced NLSF tool, such as say Gaussian in the Peak category, you can view the initialization code using the NLSF menu command Scripts->Parameter Initialization.
......


easwar Posted - 09/09/2004 : 10:21:16 AM
Hello,

The parameter initialization for our built-in fitting functions is coded in Origin C. If you browse to any function in the advanced NLSF tool, such as say Gaussian in the Peak category, you can view the initialization code using the NLSF menu command Scripts->Parameter Initialization.

The initialization code uses many functions from the file internal.c, such as sort(), smooth(), yatxmin(), fwhm() etc. Note that in the initialization code, one can use the curve x_y_curve. This curve is a copy of the data that is being fit, and so can be manipulated at will to extract useful information for initializing the parameters of your function.

So you can try using these available functions, or write your own functions to assign initial values to parameters. The code will depend on what your function is, and what kind of analysis needs to be done on the fit data to determine good initial values.

If you need further help, you could contact tech support with your function code for suggestions on how to initialize your parameters.

Note that the initialization code does not have to be in Origin C. You can write LabTalk script code for initialization as well. With Origin C, the advantage is that many functions such as xatymin() are already available for your use.

Easwar
OriginLab



Edited by - easwar on 09/09/2004 10:22:31 AM

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