hmo_sax: Motif discovery using SAX

View source: R/hmo_sax.R

hmo_saxR Documentation

Motif discovery using SAX

Description

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

Usage

hmo_sax(a, w, qtd = 2)

Arguments

a

alphabet size

w

word size

qtd

number of occurrences to be classified as motifs

Value

hmo_sax 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_sax(26, 3, 3)

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

detection <- detect(model, dataset$serie)

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


harbinger documentation built on June 22, 2024, 7:38 p.m.