arXiv Analytics

Sign in

arXiv:2403.07492 [math.NA]AbstractReferencesReviewsResources

P1 Error: A Combination of Absolute and Relative Errors

Peichen Xie

Published 2024-03-12Version 1

We propose $\frac{|x-y|}{1+|y|}$, termed the ``P1 error" or ``plus-1 error", as a metric of errors. It equals half the harmonic mean of absolute error and relative error, effectively combining their advantages while mitigating their limitations. The P1 error approaches absolute error when $|y|$ is small, and approaches relative error when $|y|$ is large. An $\epsilon$ P1 error indicates that $x$ is close to $y$ at a tolerance level of $\epsilon$, in compliance with the ``isclose" definition used in popular numerical libraries.

Related articles: Most relevant | Search more
arXiv:1102.3136 [math.NA] (Published 2011-02-15, updated 2012-02-14)
Representation of the Lagrange reconstructing polynomial by combination of substencils
arXiv:1703.05038 [math.NA] (Published 2017-03-15)
Harmonic Mean Iteratively Reweighted Least Squares for Low-Rank Matrix Recovery
arXiv:2011.12572 [math.NA] (Published 2020-11-25)
A combination of Residual Distribution and the Active Flux formulations or a new class of schemes that can combine several writings of the same hyperbolic problem: application to the 1D Euler equations