apaPatternRecognition.ShapeletFeatures.FromMotifs(shapeletSourceSeries, targetSeries, motifStarts, windowSize)
=apaPatternRecognition.ShapeletFeatures.FromMotifs(shapeletSourceSeries, targetSeries, motifStarts, windowSize)Result
Builds shapelets from motif start indices and returns distance-based shapelet features for a target time series.
Syntax
shapeletSourceSeries: r x 1 or 1 x r data vector containing the source time series from which the motif shapelets are extracted
targetSeries: r x 1 or 1 x r data vector containing the target time series to transform into shapelet features
motifStarts: n x 1 or 1 x n vector of 1-based motif start indices
windowSize: length of the subsequences (window size)
Algorithm
For each start index, the subsequence of length windowSize of the source series is used as a shapelet.
Remarks
The result contains a header row and one row per shapelet with the columns ShapeletId, Source, Length, BestDistance and BestMatchStart (1-based).
