Origin Ver. and Service Release (Select Help-->About Origin): 9 Operating System: Windows 7
Hello, I am having trouble with a fitting function I have been trying to write for my data analysis:
I have a plot of x and y=f(x) that I need to fit, but there is a catch: y=f(x)=Integral[g(x,z)] where I integrate the function from z=0 through infinity so that the result only depends directly on x.
The integral cannot be solved analytically which is where my problem comes in. I can perform the integral using d01smc from the NAG library for a constant value of x, but my result plots as a function of z. Alternatively, I am able to get a function that will simulate the result as a function of x and z (3D plot), but this function cannot be used for fitting to my data.
Is there a way to integrate over z and plot/fit against x?