calcDiff: Calculate difference between two numeric vectors that gives...

View source: R/mcrMisc.r

calcDiffR Documentation

Calculate difference between two numeric vectors that gives exactly zero for very small relative differences.

Description

Calculate difference between two numeric vectors that gives exactly zero for very small relative differences.

Usage

calcDiff(X, Y, EPS = 1e-12)

Arguments

X

first number

Y

second number

EPS

relative difference equivalent to zero

Value

difference


mcr documentation built on Sept. 23, 2024, 5:10 p.m.