Rdocumentation
powered by
Learn R Programming
MBASED (version 1.6.0)
testNumericDiff: Function that checks to see if the difference between 2 number is small enough.
Description
Function that checks to see if the difference between 2 number is small enough.
Usage
testNumericDiff(queryVals, targetVals, cutoffFraction)
Arguments
queryVals,targetVals
vectors of values to be compared (pairwise comparison will be performed)
cutoffFraction
the value of cutoff to be used to declare if the two numbers are close enough.
Value
vector of same length as input vectors queryVals and targetVals, recording for each pair of numbers whether they pas the cutoff (TRUE) or not (FALSE).
Details
for 2 numbers a and b, the function checks to see if |a-b|/min(a,b)
See Also
Other unitTestsFunctions:
testQuantiles