apaPatternRecognition.ShapeletFeatures.FromDiscords(shapeletSourceSeries, targetSeries, discordStarts, windowSize)
=apaPatternRecognition.ShapeletFeatures.FromDiscords(shapeletSourceSeries, targetSeries, discordStarts, windowSize)Result
Builds shapelets from discord 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 discord shapelets are extracted
targetSeries: r x 1 or 1 x r data vector containing the target time series to transform into shapelet features
discordStarts: n x 1 or 1 x n vector of 1-based discord 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).
