tts v2.3.0
The Tiny Test System
 
Loading...
Searching...
No Matches

◆ absolute_distance()

template<typename T , typename U >
double tts::absolute_distance ( T const &  a,
U const &  b 
)
inline

Compute the absolute distance between two values.

This function can be overloaded in the tts namespace to compute the distance for external types.

Parameters
aValue to compare
bValue to compare
Returns
The distance between a and b