[SciPy-user] polynomal regression

Christian Kristukat ckkart at hoc.net
Mon Oct 16 19:24:39 CDT 2006


Christian Meesters wrote:
>> It's linalg.lstsq.
>> Are you looking for Total Least Squares ?
>> AFAIK, it's not implemented yet.
>> Nils
> Thanks, Nils.
> Too bad. Well, back to Origin for me in this case ...

In that case you might want to try peak-o-mat (lorentz.sf.net) which does curve
fitting based on the scipy.sandbox.odr module. The odr module is included in the
software so you can use a standard scipy built.
As fitting model you may enter anything that python understands, e.g.:
a*x**2+b*x+c*x
or you can use predefined tokens, e.g.
CB GA LO LO
for a constant background, a gaussian and two lorentian peak shapes.

Christian


More information about the SciPy-user mailing list