timeatlas.metrics.pairwise.relative_error

timeatlas.metrics.pairwise.relative_error(x_0: float, x: float)

Compute the relative error between two values

Δx=x0xx
Parameters
  • x_0 – float of the inferred value

  • x – float of the measured value

Returns

float value of the relative error