fixed.unifiedErrorCalculator.absoluteError
Syntax
Description
fixed.unifiedErrorCalculator.absoluteError(
returns the absolute error between the approximate value approxValue,refValue)approxValue
and the reference value refValue given by
abs(refValue-approxValue).
fixed.unifiedErrorCalculator.absoluteError(
specifies whether to keep the calculated error as approxValue,refValue,keepNaN)NaN. By default, to
indicate the calculated error is significant, the function returns Inf if
the calculated error is NaN.
fixed.unifiedErrorCalculator.absoluteError(
specifies whether to use the slower but more accurate computation mode. When either of the
inputs is not a MATLAB® built-in type and not a subset of approxValue,refValue,keepNaN,compMode)double, the absolute
error cannot be computed in double without loss and may not be
representable by the double data type. In this case, you can use the
fi object to store the absolute error without loss.
Examples
Input Arguments
More About
Algorithms
If both
refValueandapproxValueareNaN,Inf, or-Inf, they are treated as equal, and the calculated error is zero.
Version History
Introduced in R2023b