INNER CODE UNIT · Python
distance_profile
matrix-profile-foundation/matrixprofile · matrixprofile/core.py:447
def distance_profile(prod, ws, data_mu, data_sig, query_mu, query_sig):
"""
Computes the distance profile for the given statistics.
Parameters
----------
prod : array_like
The sliding dot product between the time series and query.
ws : int
The window size.
data_mu : array_like
The time series moving average.
data_sig : array_like
The time series moving standard deviation.
query_mu : array_like
The querys moving average.
query_sig : array_like
The querys moving standard deviation.