当前位置:网站首页>numpy. linalg. Lstsq (a, B, rcond=-1) parsing

numpy. linalg. Lstsq (a, B, rcond=-1) parsing

2022-06-24 00:36:00 Small high high no bug

numpy.linalg.lstsq(a,b,rcond=-1) analysis

Returns the least square solution of a linear matrix , The o x Go to the fitting a x = b ax=b ax=b. Minimize Euclid by calculation 2 norm ∣ ∣ b − a x ∣ ∣ 2 ||b-ax||^2 bax2 Vector x x x

  • Parameters :a:{M,N} coefficient matrix
  • Parameters :b{(M,),(M,K)} Ordinate or dependent variable value . If b It's two-dimensional , Then for b Of K Calculate the least squares solution for each of the columns
  • Parameters :rcond Floating point numbers , Optional a Cut off ratio of small outliers of ( It is about controlling the number of outliers ).
  • Return value :X{(N,),(N,K)} Solution of least square method . When b The dimension of is (M,) when ,X The dimension of is (N,), When b The dimension of is (M,K) when ,X The dimension of is (N,K).
原网站

版权声明
本文为[Small high high no bug]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206232250305845.html