IterativeNonlinearLSTSQ.compute_residuals¶
- IterativeNonlinearLSTSQ.compute_residuals(model=None)[source]¶
This method computes the observed minus computed residuals for the current model (or an input model).
The residuals are returned as a 2xn numpy array where n is the number of stars observed with units of pixels.
The computed values are determined by calls to
model.project_onto_image
for thecamera_frame_directions
for each image.- Parameters
model (Optional[giant.camera_models.camera_model.CameraModel]) – An optional model to compute the residuals using. If
None
, then will usemodel
.- Returns
The observed minus computed residuals as a numpy array
- Return type
numpy.ndarray