| hdis_mp | R Documentation |
Discovers rare, dissimilar subsequences (discords) using Matrix Profile as
implemented in the tsmp package doi:10.32614/RJ-2020-021.
hdis_mp(mode = "stamp", w, qtd)
mode |
Character. Algorithm: one of "stomp", "stamp", "simple", "mstomp", "scrimp", "valmod", "pmp". |
w |
Integer. Subsequence window size. |
qtd |
Integer. Number of discords to return (>= 3 recommended). |
hdis_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/discord example data
data(examples_motifs)
# Use a simple sequence example
dataset <- examples_motifs$simple
head(dataset)
# Configure discord discovery via Matrix Profile
model <- hdis_mp("stamp", 4, 3)
# Fit the model
model <- fit(model, dataset$serie)
# Run detection
detection <- detect(model, dataset$serie)
# Show detected discords
print(detection[(detection$event),])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.