Function that checks to see if the difference between 2 number is small enough.
testNumericDiff(queryVals, targetVals, cutoffFraction)
vectors of values to be compared (pairwise comparison will be performed)
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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.