commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject Re: [Math] Straight Line Problem Jacobian Verification
Date Fri, 07 Aug 2015 04:36:50 GMT
Ooops - Never mind - crossed my calculus wires for a sec there - sorry for the noise,
Ole


On 08/06/2015 05:30 PM, Ole Ersoy wrote:
> 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-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message