| hmo_mp | R Documentation |
Discovers repeated subsequences (motifs) using Matrix Profile methods as
implemented in the tsmp package doi:10.32614/RJ-2020-021.
hmo_mp(mode = "stamp", w, qtd)
mode |
Character. Algorithm: one of "stomp", "stamp", "simple", "mstomp", "scrimp", "valmod", "pmp". |
w |
Integer. Subsequence window size. |
qtd |
Integer. Minimum number of occurrences to classify as a motif. |
hmo_mp object.
Yeh CCM, et al. (2016). Matrix Profile I/II: All-pairs similarity joins and scalable time series motifs/discrod discovery. IEEE ICDM.
Tavenard R, et al. tsmp: The Matrix Profile in R. The R Journal (2020). doi:10.32614/RJ-2020-021
library(daltoolbox)
# Load motif example data
data(examples_motifs)
# Use a simple sequence example
dataset <- examples_motifs$simple
head(dataset)
# Configure motif discovery via Matrix Profile
model <- hmo_mp("stamp", 4, 3)
# Fit the model
model <- fit(model, dataset$serie)
# Run detection
detection <- detect(model, dataset$serie)
# Show detected motifs
print(detection[(detection$event),])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.