Re: [Numpy-discussion] polyfit with fixed points

2013-03-07 Thread Charles R Harris
On Thu, Mar 7, 2013 at 9:22 AM, eat wrote: > Hi, > > On Thu, Mar 7, 2013 at 1:52 AM, Jaime Fernández del Río < > jaime.f...@gmail.com> wrote: > >> On Tue, Mar 5, 2013 at 5:23 AM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> >>> On Tue, Mar 5, 2013 at 12:41 AM, Jaime Fernánde

Re: [Numpy-discussion] polyfit with fixed points

2013-03-06 Thread Charles R Harris
On Wed, Mar 6, 2013 at 4:52 PM, Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > On Tue, Mar 5, 2013 at 5:23 AM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Tue, Mar 5, 2013 at 12:41 AM, Jaime Fernández del Río < >> jaime.f...@gmail.com> wrote: >> >>> On Mon, Mar 4

Re: [Numpy-discussion] polyfit with fixed points

2013-03-06 Thread Jaime Fernández del Río
On Tue, Mar 5, 2013 at 5:23 AM, Charles R Harris wrote: > > > On Tue, Mar 5, 2013 at 12:41 AM, Jaime Fernández del Río < > jaime.f...@gmail.com> wrote: > >> On Mon, Mar 4, 2013 at 8:37 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> There are actually seven versions of polyn

Re: [Numpy-discussion] polyfit with fixed points

2013-03-05 Thread David Pine
Jaime, If you are going to work on this, you should also take a look at the recent thread http://mail.scipy.org/pipermail/numpy-discussion/2013-February/065649.html, which is about the weighting function, which is in a confused state in the current version of polyfit. By the way, Numerical Recipe

Re: [Numpy-discussion] polyfit with fixed points

2013-03-05 Thread Charles R Harris
On Tue, Mar 5, 2013 at 6:23 AM, Charles R Harris wrote: > > > On Tue, Mar 5, 2013 at 12:41 AM, Jaime Fernández del Río < > jaime.f...@gmail.com> wrote: > >> On Mon, Mar 4, 2013 at 8:37 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> There are actually seven versions of polyn

Re: [Numpy-discussion] polyfit with fixed points

2013-03-05 Thread Charles R Harris
On Tue, Mar 5, 2013 at 12:41 AM, Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > On Mon, Mar 4, 2013 at 8:37 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> There are actually seven versions of polynomial fit, two for the usual >> polynomial basis, and one each for Lege

Re: [Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Jaime Fernández del Río
On Mon, Mar 4, 2013 at 8:37 PM, Charles R Harris wrote: > > There are actually seven versions of polynomial fit, two for the usual > polynomial basis, and one each for Legendre, Chebyshev, Hermite, Hermite_e, > and Laguerre ;) > Correct me if I am wrong, but the fitted function is the same regard

Re: [Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Charles R Harris
On Mon, Mar 4, 2013 at 5:23 PM, Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > A couple of days back, answering a question in StackExchange ( > http://stackoverflow.com/a/15196628/110026), I found myself using > Lagrange multipliers to fit a polynomial with least squares to data, making

Re: [Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Charles R Harris
On Mon, Mar 4, 2013 at 5:53 PM, Aron Ahmadia wrote: > Interesting, that question would probably have gotten a different response > on scicomp, it is a pity we are not attracting more questions there! > > I know there are two polyfit modules in numpy, one in numpy.polyfit, the > other in numpy.pol

Re: [Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Jaime Fernández del Río
On Mon, Mar 4, 2013 at 4:53 PM, Aron Ahmadia wrote: > Interesting, that question would probably have gotten a different response > on scicomp, it is a pity we are not attracting more questions there! > > I know there are two polyfit modules in numpy, one in numpy.polyfit, the > other in numpy.pol

Re: [Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Aron Ahmadia
Interesting, that question would probably have gotten a different response on scicomp, it is a pity we are not attracting more questions there! I know there are two polyfit modules in numpy, one in numpy.polyfit, the other in numpy.polynomial, the functionality you are suggesting seems to fit in e

[Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Jaime Fernández del Río
A couple of days back, answering a question in StackExchange ( http://stackoverflow.com/a/15196628/110026), I found myself using Lagrange multipliers to fit a polynomial with least squares to data, making sure it went through some fixed points. This time it was relatively easy, because some 5 years