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

◆ relative_distance()

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

Compute the relative distance between two values.

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

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