OpticalBearingMeasurement.compare_residuals¶
- static OpticalBearingMeasurement.compare_residuals(first, second)[source]¶
This compares residuals computed using these measurement models.
If this returns
True, thenfirstis smaller than or equal tosecond(according to the definition of the residuals for this measurement). IfFalse, then ``firstis 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:
Trueif the first residual <= second residual otherwiseFalse- Return type:
bool