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
 Access orig. dataset from within fitting function

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
bartrex Posted - 12/10/2024 : 3:41:03 PM
Hello,
I want to access downloaded dataset from user-defined fitting function (origin c), but I didn't find anything exept direct access as an worksheet object. It doesn't seems to me a very good solution because in this situation I have to refer to worksheet name or it should be active layer. I think it must be a special notation for datasets specified in Nonlinear Curve Fit Tool. Could you please explain how I can do this or send me to the documentation where I can find the answer.
Thanks in advance.
4   L A T E S T    R E P L I E S    (Newest First)
bartrex Posted - 12/17/2024 : 11:39:55 AM
Yes, this is exactly what I meant.
This is unfortunate, since in my function the fitting is done by solving a system of equations that is obtained numerically. And I expect better performance when using original data as initial values for solver.
Anyway thank you a lot for your reply!
YimingChen Posted - 12/16/2024 : 4:24:32 PM
If you're referring to obtaining the original data from the NLFitSession object, it isn't possible, as the dataset member in the class is private and not accessible.

bartrex Posted - 12/15/2024 : 2:34:53 PM
Thank you for your reply, James!
Perhaps I didn't express the question in enough detail. This is almost what I wanted except for one detail. I want to get dataset for which fitting is performed (experimental curve), not fitted curve. Unfortunately I didn't find this function in docs section you sent.
In origin c script experimental curve is determined clearly by the user. But usually I perform fitting using Nonlinear Curve Fit Tool. And I want to be able to access it from within the fitting function. Initially I thought that experimantal data would be contained in dependent variables and only later I should redefine it but there are zeros instead.
Maybe there is no functionality to do what I want and I should use only worksheet object. I'm just not sure. Thank you.
YimingChen Posted - 12/11/2024 : 1:56:44 PM
Are you talking about performing curve fitting using OriginC code and obtaining the fitted curve? If so, please refer to the following pages for the function to use and the sample code. Thank you.
https://www.originlab.com/doc/OriginC/ref/NLFitSession-GetYFromX
https://www.originlab.com/doc/OriginC/ref/NLFitSession

James

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