Sum of the Least Squares

Huaiyu Zhu hzhu at users.sourceforge.net
Fri Sep 29 20:07:21 EDT 2000


On Fri, 29 Sep 2000 14:21:31 GMT, Gene C <gchiaramonte at yahoo.com> wrote:
>
>Does anyone know where I can find a function to do non-linear least squares
>fit interpolation that is implemented in python? (actual python code, not a
>module implemented in something else) Other curve fitting functions would be
>interesting too.
>

When you say nonlinear least squares, do you have a specific set of bases or
do you want the program to choose it?  If the former, it is essentially
linear mathematically (and computationally).  It's a one-liner if you use
NumPy.

If the latter, a lot more specifications are needed.  In essence you need to
specify a model space and a prior distribution (or equivalently a kernel of
Gaussian measure or a Sobolev norm) in the function space.  

I have some old code in Matlab using radial basis functions I always wanted
to convert to Python.  Maybe I'll find time this weekend.

I take it that you do not mean to exclude the Numeric package when you say
"not a module".


Huaiyu
-- 
Huaiyu Zhu                       hzhu at users.sourceforge.net
Matrix for Python Project        http://MatPy.sourceforge.net 



More information about the Python-list mailing list