| Author |
Comment/Response |
greedohun
|
09/22/11 06:41am
I have to fit an equation to a set of data where the equation has its variable in the limit of a numerical integration.
I have tried it with a simplified model:
NonlinearModelFit[{1, 2, 3, 5, 8, 13, 17, 18, 18, 19},
a*NIntegrate[5^x/Gamma[x], {x, 0, y}], {a}, y]
But this gives the error:
NIntegrate::nlim: x = y is not a valid limit of integration.
The same equation can be plotted on a specified y range, i.e. {y,0,10}, which makes me believe that the problem is that nonlinearModelFit doesnt assume that the range should be the one where data is available.
I haven't had much success either with supplying this assumption, or using other fitting functions (FindFit..). Could someone help me please?
URL: , |
|