Hi Guys,

Reviewing the org.apache.commons.math4.fitting.leastsquares.StraightLineProblem 
(f(x) = ax  + b).   For the jacobian we have:

            // Partial derivative wrt "a".
            jacobian[i][0] = p[0];
            // Partial derivative wrt "b".
            jacobian[i][1] = 1;

Should it be:

            // Partial derivative wrt "a".
            jacobian[i][0] = 1;
            // Partial derivative wrt "b".
            jacobian[i][1] = 0;

Cheers,
Ole




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to