On Wed, Oct 17, 2012 at 12:23:12AM +0200, Timo Bretten wrote:
> That works indeed, cheers Nir!
> I was confused because by default, wt is set to ones(size(y)) ... also

ones(size(y)) have the same dimensions as y

> from the documentation - which kind of clashed with the initial
> statement, that wt should be of the same dimension as y ...

so there should be no clash of these statements.

> Anyways, thanks for the quick reply, I consider my problem fixed.

But for the record, you do not need to specify weights if they are
constant.

Olaf
 
> Timo
> 
> 2012/10/17 Nir Krakauer <nkraka...@ccny.cuny.edu>:
> > Hi Timo,
> >
> > As far as I can tell from the documentation (
> > http://octave.sourceforge.net/optim/function/leasqr.html ), wt is an N*1
> > vector. If your estimated error standard deviation is constant and equal to
> > noize, you would set wt = ones(n, 1) / noize
> >
> > Nir
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Octave-dev mailing list
> Octave-dev@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/octave-dev

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

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to