apaPatternRecognition.MatrixProfile.AdjacencyMatrix(series, windowSize, exclusionZone)
Excel
=apaPatternRecognition.MatrixProfile.AdjacencyMatrix(series, windowSize, exclusionZone)Result
Returns the self-join distance matrix between all subsequences of a time series, e.g. as input for graph functions.
Syntax
series: r x 1 or 1 x r data vector containing a time series
windowSize: length of the subsequences (window size)
exclusionZone: exclusion zone in window units, 0 for none. Default value: −1, i.e. ceiling(windowSize/4)
Algorithm
The series is split into all overlapping subsequences of length windowSize.
Remarks
The result is a k x k matrix with k = r − windowSize + 1 and zeros on the main diagonal.
