.relativeError {waddR}R Documentation

Compute relative error

Description

Computes the relative error between two numbers x and y.

Usage

.relativeError(x, y)

Arguments

x

a number

y

a number

Details

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

Value

The relative error between x and y


[Package waddR version 1.6.1 Index]