autopdex.geometry.r_equivalence

autopdex.geometry.r_equivalence(o1, o2)[source]

Computes the logical NOT XOR operation by combining two positively evaluated smooth distance functions.

Parameters:
  • o1 (float) – The first operand for the logical “not xor” operation.

  • o2 (float) – The second operand for the logical “not xor” operation.

Returns:

The result of the logical “not xor” operation, calculated using

the formula o1 * o2 / (o1 + o2).

Return type:

float