A Sign-Symmetric Reformulation of the Hassanat Distance for Data with Negative Feature Values
The Sign-Symmetric Hassanat Distance (SHasD), a single branch-free formula D(a,b)=|a−b|/(1+max(|a|,|b|)) that is invariant under the reflection x↦−x, coincides exactly with HasD on non-negative data, and removes the conditional shift entirely.