INNER CODE UNIT · Python

is_not_nan_inf

matrix-profile-foundation/matrixprofile · matrixprofile/core.py:211

def is_not_nan_inf(val):
    """
    Helper function to determine if a given value is not NaN or infinite.

    Parameters
    ----------
    val : obj
        The value to test against.

    Returns
    -------
    boolean - True or False respectively.
    """
    not_nan = not np.isnan(val)
    not_inf = not np.isinf(val)
    return not_nan and not_inf

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…