OpticalBearingMeasurement.compare_residuals

giant.ufo.measurements:

static OpticalBearingMeasurement.compare_residuals(first, second)[source]

This compares residuals computed using these measurement models.

If this returns True, then first is smaller than or equal to second (according to the definition of the residuals for this measurement). If False, then ``first is larger than second. 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 otherwise False

Return type:

bool