INNER CODE UNIT · Python
get_profile_length
matrix-profile-foundation/matrixprofile · matrixprofile/core.py:121
def get_profile_length(ts_a, ts_b, m):
"""
Determines the profile length based on the provided inputs.
Parameters
----------
ts_a : array_like
Time series containing the queries for which to calculate the Matrix Profile.
ts_b : array_line
Time series containing the queries for which to calculate the Matrix Profile.
m : int
Length of subsequence to compare.
Returns
-------
int - the length of the matrix profile.
"""
return len(ts_a) - m + 1