OpticalBearingMeasurement.compare_residuals¶
- static OpticalBearingMeasurement.compare_residuals(first, second)[source]¶
This compares residuals computed using these measurement models.
If this returns
True
, thenfirst
is smaller than or equal tosecond
(according to the definition of the residuals for this measurement). IfFalse, then ``first
is larger thansecond
. This is used to check for divergence.Here the residuals are compared by their 2 norm.
- Parameters:
first (ndarray) – The first residual
second (ndarray) – The second residual
- Returns:
True
if the first residual <= second residual otherwiseFalse
- Return type:
bool