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.
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.
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.
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!