opendvp.metrics.nan_difference#
- nan_difference(array1, array2)#
Calculate how many NaNs do not match between two arrays.
Good quality control, since this can happen.
- Parameters:
array1 (numpy.ndarray) – First array to compare.
array2 (numpy.ndarray) – Second array to compare. Must have the same shape as array1.
- Returns:
A tuple containing: - The number of mismatched NaNs. - The total number of elements in an array.
- Return type: