apaPatternRecognition.TopDiscords.FromProfile(profile, profileIndex, windowSize, topK)
Excel
=apaPatternRecognition.TopDiscords.FromProfile(profile, profileIndex, windowSize, topK)Result
Returns the top non-overlapping discords, i.e. the most unusual subsequences, from matrix profile and matrix profile index vectors.
Syntax
profile: k x 1 or 1 x k matrix profile vector
profileIndex: k x 1 or 1 x k vector of 1-based matrix profile indices
windowSize: length of the subsequences (window size)
topK: number of discords to return. Default value: 10
Algorithm
The subsequences are sorted by descending matrix profile value, i.e. distance to their nearest neighbor.
Remarks
The result contains a header row and one row per discord with the columns Rank, Start, NearestNeighborStart (both 1-based) and Distance.
