apaPatternRecognition.GetWindowsData(data, windowSize)
Excel
=apaPatternRecognition.GetWindowsData(data, windowSize)Result
Returns all overlapping subsequences (sliding windows) of a time series.
Syntax
data: r x 1 or 1 x r data vector containing a time series
windowSize: length of the subsequences (window size)
Remarks
The result is a windowSize x (r − windowSize + 1) matrix, each column containing one subsequence.
Related functions
apaPatternRecognition.ChangePoints.FromProfileReturns the top regime change candidates derived from a matrix profile index vector.apaPatternRecognition.ChangePoints.FromSeriesCalculates the matrix profile for a univariate time series and returns the top regime change candidates.apaPatternRecognition.ExpandProfile.ToSeriesExpands a matrix profile vector to the length of the original time series, using the minimum over all overlapping windows.apaPatternRecognition.MatrixProfileReturns the matrix profile and the 1-based matrix profile index for a univariate time series.apaPatternRecognition.MatrixProfile.AdjacencyMatrixReturns the self-join distance matrix between all subsequences of a time series, e.g. as input for graph functions.apaPatternRecognition.MotifExtraction.TopMotifPairs.FromProfileReturns the top non-overlapping motif pairs, i.e. the most similar pairs of subsequences, from matrix profile and matrix profile index vectors.apaPatternRecognition.MotifGroups.FromProfileReturns motif groups extracted from matrix profile and matrix profile index vectors using index-link grouping.apaPatternRecognition.MotifGroups.FromSeriesReturns motif groups extracted from a univariate time series using distance-based grouping.apaPatternRecognition.RegimeSegments.FromChangePointsBuilds contiguous regime segments from change point positions and scores.apaPatternRecognition.RegimeSegments.FromSeriesCalculates change points from a time series and returns contiguous regime segments.apaPatternRecognition.RegimeTrajectory.FromSeriesCalculates change points from a time series and returns the regime trajectory, i.e. the 1-based regime index for each observation.apaPatternRecognition.SegmentationProfile.FromProfileReturns the segmentation profile derived from a matrix profile index vector, i.e. a score for each position indicating the likelihood of a regime change.apaPatternRecognition.SegmentationProfile.FromSeriesCalculates the matrix profile for a univariate time series and returns the segmentation profile, i.e. a score for each position indicating the likelihood of a regime change.apaPatternRecognition.SelectTopNonRedundantShapeletsSelects the top non-redundant shapelets from a scored shapelet table, filtering shapelets with highly correlated distance profiles across the training series.apaPatternRecognition.ShapeletFeatures.FromDiscordsBuilds shapelets from discord start indices and returns distance-based shapelet features for a target time series.apaPatternRecognition.ShapeletFeatures.FromMotifsBuilds shapelets from motif start indices and returns distance-based shapelet features for a target time series.apaPatternRecognition.ShapeletFeatures.FromSeries.AutoDetermines motif and discord shapelets from a source time series and returns distance-based shapelet features for a target time series.apaPatternRecognition.ShapeletScoresBinaryScores candidate shapelets for binary classification, based on the separation of the best-match distances between training series with label 0 and label 1.apaPatternRecognition.ShapeletScoresBinary.AutoDetermines motif- and discord-derived candidate shapelets from a source time series and scores them for binary classification.apaPatternRecognition.TopDiscords.FromProfileReturns the top non-overlapping discords, i.e. the most unusual subsequences, from matrix profile and matrix profile index vectors.apaPatternRecognition.TopDiscords.FromSeriesCalculates the matrix profile for a univariate time series and returns the top non-overlapping discords, i.e. the most unusual subsequences.apaPatternRecognition.WindowPatternFeaturesBuilds features for each subsequence window from motif groups, discords and optionally change points, e.g. as input for classification or regression models.apaPatternRecognition.WindowPatternFeatures.FromSeriesCalculates motif groups, discords and change points from a time series and returns features for each subsequence window.
