- #1
evilcman
- 41
- 2
I would like to perform a complicated nonlinear fit with mathematica, which
involves a numerical integral in the fitted model. But i can't get it to work.
If I say something like:
NonlinearRegress[data, NIntegrate[f[x, p1, p2, y], {y, 0, 1}], {p1, p2}, x]
it says the integrand evaluated to non-numerical values. I guess this happens
because it tries to evaluate the fitted model symbolically.
How can I get this to work?
involves a numerical integral in the fitted model. But i can't get it to work.
If I say something like:
NonlinearRegress[data, NIntegrate[f[x, p1, p2, y], {y, 0, 1}], {p1, p2}, x]
it says the integrand evaluated to non-numerical values. I guess this happens
because it tries to evaluate the fitted model symbolically.
How can I get this to work?