hmo_discord {harbinger} | R Documentation |
Discord discovery using Matrix Profile
Description
Discord discovery using Matrix Profile doi:10.32614/RJ-2020-021
Usage
hmo_discord(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 discords |
Value
hmo_discord
object
Examples
library(daltoolbox)
#loading the example database
data(examples_motifs)
#Using sequence example
dataset <- examples_motifs$simple
head(dataset)
# setting up discord discovery method
model <- hmo_discord("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]