Module tests_core

Source

Functionsยง

average_distance
compares two sets of values and returns the average distance between the two (in absolute value)
within_epsilon
compares two sets of values to see if they remain within epsilon of each other using relative error calculation of val1-val2 divided by the average of val1 and val2 (to avoid dividing by 0 while maintaining similar range of values to regular relative error)
within_epsilon_absolute_error_only
function that compares two sets of values and returns true if the absolute error is within specified epsilon