I'm working on a program to fit a curve, and I'm having some problems with it. I've got a couple different curves I need to fit data to and most aren't giving me trouble, but the algorithm keeps getting snagged on this one.
R(x) = a * x ^ (b-1) * e ^ (-x/c), where a, b, and c are unknown constants. It seems like no matter what my guesses are with this thing it diverges all over the place. I'm using a public-domain piece of VB code to handle the levenberg-marquardt algorithm, so all I have to feed it are the partial derivatives with respect to the parameters I want to determine (a, b, c).
Is there anything I can do to coax this thing into converging? Right now I'm getting closer by guessing than my software can get.
Thanks for the help!
-Greg[/code]
R(x) = a * x ^ (b-1) * e ^ (-x/c), where a, b, and c are unknown constants. It seems like no matter what my guesses are with this thing it diverges all over the place. I'm using a public-domain piece of VB code to handle the levenberg-marquardt algorithm, so all I have to feed it are the partial derivatives with respect to the parameters I want to determine (a, b, c).
Is there anything I can do to coax this thing into converging? Right now I'm getting closer by guessing than my software can get.
Thanks for the help!
-Greg[/code]