hmo_mp | R Documentation |
Motif discovery using Matrix Profile doi:10.32614/RJ-2020-021
hmo_mp(mode = "stamp", w, qtd)
mode |
mode of computing distance between sequences. Available options include: "stomp", "stamp", "simple", "mstomp", "scrimp", "valmod", "pmp" |
w |
word size |
qtd |
number of occurrences to be classified as motifs |
hmo_mp
object
library(daltoolbox)
#loading the example database
data(examples_motifs)
#Using sequence example
dataset <- examples_motifs$simple
head(dataset)
# setting up motif discovery method
model <- hmo_mp("stamp", 4, 3)
# fitting the model
model <- fit(model, dataset$serie)
detection <- detect(model, dataset$serie)
# filtering detected events
print(detection[(detection$event),])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.