F********E 发帖数: 1025 | 1 Hi all:
I want to do a least square fitting, but I need to apply a constraint--which
is that the fitting line has to exactly cut through one specific data point
in my data set. For example, I want the parabolic line pass the origin, or
I need the following equation to fit in my data:
*************
a*x^2+b*x
**************
instead of the regular one:
*************
a*x^2+b*x+c
**************
Does anybody know any function in PYLAB OR PYTHON or other suite which can
do this? Thanks a lot! | t***s 发帖数: 4666 | 2 直接对[x^2 x]做回归。
which
point
or
【在 F********E 的大作中提到】 : Hi all: : I want to do a least square fitting, but I need to apply a constraint--which : is that the fitting line has to exactly cut through one specific data point : in my data set. For example, I want the parabolic line pass the origin, or : I need the following equation to fit in my data: : ************* : a*x^2+b*x : ************** : instead of the regular one: : *************
|
|