apaPatternRecognition.SegmentationProfile.FromProfile(profileIndex, windowSize)
Excel
=apaPatternRecognition.SegmentationProfile.FromProfile(profileIndex, windowSize)Result
Returns the segmentation profile derived from a matrix profile index vector, i.e. a score for each position indicating the likelihood of a regime change.
Syntax
profileIndex: k x 1 or 1 x k vector of 1-based matrix profile indices
windowSize: length of the subsequences (window size)
Algorithm
Each subsequence is connected with its nearest neighbor by an arc. For each position, the number of arcs passing over it is counted.
Remarks
Low segmentation scores indicate regime changes, since few subsequences have their nearest neighbor on the other side of the position.
