apaPatternRecognition.WindowPatternFeatures(windowCount, motifGroups, discordStarts, changePoints)
=apaPatternRecognition.WindowPatternFeatures(windowCount, motifGroups, discordStarts, changePoints)Result
Builds features for each subsequence window from motif groups, discords and optionally change points, e.g. as input for classification or regression models.
Syntax
windowCount: number of subsequence windows, typically r − windowSize + 1
motifGroups: motif group matrix as returned by apaPatternRecognition.MotifGroups.FromProfile or apaPatternRecognition.MotifGroups.FromSeries
discordStarts: n x 1 or 1 x n vector of 1-based discord start indices
changePoints: change point matrix as returned by apaPatternRecognition.ChangePoints.FromProfile or apaPatternRecognition.ChangePoints.FromSeries, or a vector of 1-based positions only. Empty to ignore
Remarks
The result contains a header row and one row per window with the columns Start, MotifGroupId, MotifMemberCount, MotifSeedDistance, DistanceToNearestMotifSeed, DiscordFlag, DiscordRank, DistanceToNearestDiscord, TimeSinceLastMotif, TimeSinceLastDiscord, DistanceToNearestChangePoint and NearestChangePointScore. NearestChangePointScore is the score of the change point nearest to the window; if two change points are equally near, the earlier one is used.
