Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第一章 最小二乘法scipy.optimize leastsq函数返回值错误 #37

Open
dpfan opened this issue Apr 24, 2020 · 0 comments
Open

第一章 最小二乘法scipy.optimize leastsq函数返回值错误 #37

dpfan opened this issue Apr 24, 2020 · 0 comments

Comments

@dpfan
Copy link

dpfan commented Apr 24, 2020

def fiitting(M=0),这个函数,返回值应该是return p_lsq[0]
因为leastsq的返回值是一个tuple,它里面有多个元素,第一个元素是(参数)的求解结果,所以返回值应该是p_lsq[0]???
https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.leastsq.html
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant