apaPatternRecognition.RegimeTrajectory.FromSeries(series, windowSize, topKChangePoints, minSpacing, minRegimeLength)
=apaPatternRecognition.RegimeTrajectory.FromSeries(series, windowSize, topKChangePoints, minSpacing, minRegimeLength)Result
Calculates change points from a time series and returns the regime trajectory, i.e. the 1-based regime index for each observation.
Syntax
series: r x 1 or 1 x r data vector containing a time series
windowSize: length of the subsequences (window size)
topKChangePoints: number of top change points to extract. Default value: 3
minSpacing: minimum spacing between change points. Default value: −1, i.e. windowSize
minRegimeLength: minimum regime length, shorter regimes are merged with a neighbor. Default value: 1
Algorithm
The regime segments are calculated (see apaPatternRecognition.RegimeSegments.FromSeries) and each observation is assigned the index of its regime.
Remarks
The result has the same length as the time series.
