如果这是不是有些运动在执行这一自己,我会建议你使用类似的 GNU GSL 。看看他们的名字开始与 gsl_multifit _
,例如见的功能第二个例子这里。
If this is not some exercise in implementing this yourself, I would suggest you use a ready-made library like GNU gsl. Have a look at the functions whose names start with gsl_multifit_
, see e.g. the second example here.