.relativeError {waddR}R Documentation

.relativeError

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

.relativeError(x, y)

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


[Package waddR version 1.2.0 Index]