leastsquare_1d#
- astropy.modeling.statistic.leastsquare_1d(measured_vals, updated_model, weights, x)[source]#
Least square statistic with optional weights. Safer than the general
leastsquare()
for 1D models by avoiding numpy methods that support broadcasting.- Parameters:
- Returns:
- res
float
The sum of least squares.
- res
See also