Learn R Programming

harbinger (version 1.2.727)

hdis_sax: Discord discovery using SAX

Description

Discord discovery using SAX doi:10.1007/s10618-007-0064-z

Usage

hdis_sax(a, w, qtd = 2)

Value

hdis_sax object

Arguments

a

alphabet size

w

word size

qtd

number of occurrences to be classified as discords

Examples

Run this code
library(daltoolbox)

#loading the example database
data(examples_motifs)

#Using sequence example
dataset <- examples_motifs$simple
head(dataset)

# setting up discord discovery method
model <- hdis_sax(26, 3, 3)

# fitting the model
model <- fit(model, dataset$serie)

detection <- detect(model, dataset$serie)

# filtering detected events
print(detection[(detection$event),])

Run the code above in your browser using DataLab