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