SearchSTMotifs: Search for Spatial-Time Motifs

View source: R/mainFunction.R

SearchSTMotifsR Documentation

Search for Spatial-Time Motifs

Description

Discovers motifs in the spatio-temporal blocks of the dataset, validates occurrence constraints, and groups motifs from neighboring blocks.

Usage

SearchSTMotifs(D, DS, w, a, sb, tb, si = 3, ka = 3)

Arguments

D

Dataset containing numeric values.

DS

Dataset containing SAX encoded values (as returned by NormSAX).

w

Word size (motif length in SAX symbols).

a

Number of letters in the SAX alphabet.

sb

Spatial block size (number of columns per block).

tb

Temporal block size (number of rows per block).

si

Minimum number of occurrences inside each block (sigma). Default: 3.

ka

Minimum number of spatial series with occurrences inside each block (kappa). Default: 3.

Value

A list of identified motifs. Each motif contains:

isaxcode

Motif sequence in character format.

recmatrix

Matrix indicating which blocks contain this motif.

vecst

Data frame with columns s and t giving the start positions in the original dataset.

Examples

D  <- STMotif::example_dataset
DS <- NormSAX(STMotif::example_dataset, 5)
stmotifs <- SearchSTMotifs(D, DS, 4, 5, 4, 10, 2, 2)

STMotif documentation built on March 30, 2026, 1:06 a.m.