dot-relativeError: .relativeError

Description Usage Arguments Details Value

Description

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).

Usage

1

Arguments

x

numerical (in the sense of is.numeric)

y

numerical (in the sense of is.numeric)

Details

The relative error e is defined as: e = | 1 - x/y |

Value

The relative error between x and y


waddR documentation built on Nov. 8, 2020, 8:32 p.m.