calcDiff {mcrPioda}R 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


[Package mcrPioda version 1.3.3 Index]