Description Usage Arguments Details Value
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).
1 | .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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.