Re: Nonlinear regression



Things don't look bad.

The easiest way to test this is probably to put it into gnumeric's
source and then call your test routine somewhere in gnumeric's main.
Something like

    if (getenv ("TESTING_REGRESSION")) {
        do_regression_test ();
        exit (0);
    }

That way you will have all the linking set up correctly.

You'll probably need some name changes.  non_linear_regression should
probably be called non_linear_regression_iteration and there should
be a non_linear_regression function in charge of picking an initial
guess and iterating as needed.

When you get things working, you will also need to worry about memory
leaks, notably in the failure cases.

Stop by irc.gnome.org #gnumeric if you have questions.

Morten



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]