octave-maintainers
[Top][All Lists]
Advanced

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

polyfit: add the ability to specify the polynomial template


From: CdeMills
Subject: polyfit: add the ability to specify the polynomial template
Date: Sat, 4 Feb 2012 06:51:50 -0800 (PST)

Hello,

I enclose a patch against the stable branch polyfit.m in order to specify
the polynomial template, i.e. giving the ability to force some of the
coefficients to be zero. This is accomplished by passing a logical vector
instead of a scalar for the last argument. Also compute C, the inverse of
r.'*r, which is the unscaled covariance matrix. To obtain the standard
deviation, simply take sqrt(diag(C)/df)*normr; where df are the degrees of
freedom and normr the residual norm.

Changelog entry:

polyfit.m: add the ability to specify polynomial template


Regards

Pascal

http://octave.1599824.n4.nabble.com/file/n4357144/polyfit.pat polyfit.pat 

--
View this message in context: 
http://octave.1599824.n4.nabble.com/polyfit-add-the-ability-to-specify-the-polynomial-template-tp4357144p4357144.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

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