Origin Ver. 8.5.0G and Service Release 0 Operating System: Win 7
Hi,
i use the impulse analyzer to fit a Bremsstrahlung spectra. I've created therefore a FDF-File with a rather complicated fit function. Is it possible to use external data e.g. from the worksheet in the fitfunction during the fit?
That means for a certain "x" (channel) i'll calculate an integer number with one of the fitparameters "x*k=c", read out from the worksheet Column(..), Row(c) a double value and use it in the fit function as factor for my fit function.
e.g.: int c; c=k*x; Fitfunction: y=y0 + x*k*(column,row:c)
Here is an example. You don't need to care about the convolution part. The example shows that, inside the function body, you can use Worksheet wks = Project.ActiveLayer(); to get the active worksheet, and then define datasets for worksheet columns. Hope this helps.