INNER CODE UNIT · Python
is_nan_inf
matrix-profile-foundation/matrixprofile · matrixprofile/core.py:195
def is_nan_inf(val):
"""
Helper function to determine if a given value is NaN or infinite.
Parameters
----------
val : obj
The value to test against.
Returns
-------
boolean - True or False respectively.
"""
return np.isnan(val) or np.isinf(val)
def is_not_nan_inf(val):
"""