help-octave
[Top][All Lists]
Advanced

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

Re: Fwd: leasqr problem in the partial derivative


From: Olaf Till
Subject: Re: Fwd: leasqr problem in the partial derivative
Date: Sat, 23 Sep 2017 06:40:47 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Fri, Sep 22, 2017 at 11:49:08AM -0400, Doug Stewart wrote:
> > On Thu, Sep 21, 2017 at 10:12:31PM -0400, Doug Stewart wrote:
> > >  leasqrfunc = @(x, p) p(1) * exp (-p(2) * x ) +p(3);
> > >  leasqrdfdp = @(x, f, p, dp, func) [exp(-p(2)*x),
> > > -p(1)*x.*exp(-p(2)*x),0*x+1];
>
> I comprehend what you are saying from a programmer's view, but from a
> user's view
> the user is directed to put the partial derivative in that place. and the
> partial derivative is 1.
> 
> so how is the general user to know that the programme wants more than "+1"

There is probably still a misunderstanding. 'leasqrfunc' returns a
vector, each element being a guess for the respective observed
value. So the partial derivative is needed for each of these elements.

Olaf

-- 
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]