INNER CODE UNIT · Python

find_skip_locations

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

def find_skip_locations(ts, profile_length, window_size):
    """
    Determines which locations should be skipped based on nan or inf values.

    Parameters
    ----------
    ts : array_like
        Time series containing the queries for which to calculate the Matrix Profile.
    query : array_line
        Time series containing the queries for which to calculate the Matrix Profile.
    window_size : int
        Length of subsequence to compare.
    
    Returns
    -------
    int - the length of the matrix profile.
    """
    skip_loc = np.zeros(profile_length).astype(bool)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…