leastsquare_3d# astropy.modeling.statistic.leastsquare_3d(measured_vals, updated_model, weights, x, y, z)[源代码]# 具有可选权重的最小二乘统计。比将军更安全 leastsquare() 对于3D模型,避免了支持广播的numy方法。 参数: measured_vals : ndarray恩达雷测量数据值。 updated_model : Model模型由优化器的当前迭代设置参数的模型。 weights : ndarray 或 NoneNdarray或 Python :无应用于每个残差的权重数组。 x : ndarray恩达雷自变量“x”,用于评估模型。 y : ndarray恩达雷自变量“y”,用于评估模型。 z : ndarray恩达雷自变量“z”,用于评估模型。 返回: res : floatPython :浮点最小平方和。 参见 leastsquare()