[SciPy-Dev] legendre regression
Yaroslav Halchenko
lists at onerussian.com
Mon Jan 31 13:50:26 EST 2011
Thanks everyone! didn't know about numpy's "copy" of the
functionality... I guess bloody fresh:
In [1]: from numpy.polynomial import Legendre as L
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/yoh/proj/pymvpa/pymvpa/<ipython console> in <module>()
ImportError: cannot import name Legendre
In [2]: import numpy
In [3]: numpy.__version__
Out[3]: '1.5.1'
meanwhile worked out temporary workaround by offsetting 'inf' locations
On Mon, 31 Jan 2011, Charles R Harris wrote:
> You might also be interested in the Legendre polynomial series in
> Numpy.
> In [1]: from numpy.polynomial import Legendre as L
> In [2]: p = L([0,1])
> In [3]: p([-1 , -0.6, -0.2, 0.2, 0.6, 1. ])
> Out[3]: array([-1. , -0.6, -0.2, 0.2, 0.6, 1. ])
> Chuck
> References
> 1. mailto:lists at onerussian.com
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
--
=------------------------------------------------------------------=
Keep in touch www.onerussian.com
Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic
More information about the SciPy-Dev
mailing list