Description Usage Arguments Details Value See Also
View source: R/MBASEDUnitTestsFunctions.R
Function that checks to see if the difference between 2 number is small enough.
1 | testNumericDiff(queryVals, targetVals, cutoffFraction)
|
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. |
for 2 numbers a and b, the function checks to see if |a-b|/min(a,b) <= cutoff.
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).
Other unitTestsFunctions: testQuantiles
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.