.relativeError {waddR} | R Documentation |
Computes the relative error between two numericals (in the sense of is.numeric) x and y. If x and y are vectors, it is assumed that length(x) == length(y).
.relativeError(x, y)
x |
numerical (in the sense of is.numeric) |
y |
numerical (in the sense of is.numeric) |
The relative error e is defined as: e = | 1 - x/y |
The relative error between x and y