leastsquare_3d#

astropy.modeling.statistic.leastsquare_3d(measured_vals, updated_model, weights, x, y, z)[源代码]#

具有可选权重的最小二乘统计。比将军更安全 leastsquare() 对于3D模型,避免了支持广播的numy方法。

参数:
measured_vals : ndarray恩达雷

测量数据值。

updated_modelModel模型

由优化器的当前迭代设置参数的模型。

weights : ndarrayNoneNdarray或 Python :无

应用于每个残差的权重数组。

x : ndarray恩达雷

自变量“x”,用于评估模型。

y : ndarray恩达雷

自变量“y”,用于评估模型。

z : ndarray恩达雷

自变量“z”,用于评估模型。

返回:
res : floatPython :浮点

最小平方和。

参见

leastsquare()