hmo_mp {harbinger} | R Documentation |
Motif discovery using Matrix Profile
Description
Motif discovery using Matrix Profile doi:10.32614/RJ-2020-021
Usage
hmo_mp(mode = "stamp", w, qtd)
Arguments
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 |
Value
hmo_mp
object
Examples
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),])
[Package harbinger version 1.0.787 Index]