timeatlas.metrics.pairwise.relative_error¶
-
timeatlas.metrics.pairwise.
relative_error
(x_0: float, x: float)¶ Compute the relative error between two values
\[\Delta x = \frac{x_0 - x}{x}\]- Parameters
x_0 – float of the inferred value
x – float of the measured value
- Returns
float value of the relative error