INNER CODE UNIT · Python

nan_inf_indices

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

def nan_inf_indices(a):
    """
    Helper method to obtain the nan/inf indices of an array.

    Parameters
    ----------
    a : array_like
        The array to test.

    Returns
    -------
    Masked array of indices containing nan/inf.
    """
    return (np.isnan(a)) | (np.isinf(a))


def not_nan_inf_indices(a):
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…