Distances between event sequences

Share:

Description

Compute Optimal Matching like distances between event sequences. The distance measure is fully described in Studer et al. 2010.

Usage

1
seqedist(seqe, idcost, vparam, interval="No", norm="YujianBo")

Arguments

seqe

an event sequence object as defined by the seqecreate function.

idcost

Insertion/deletion cost of the different type of event (one entry per event type).

vparam

The cost of moving an event of one time unit.

norm

Character. One of "YujianBo" (respects triangle inequality), "max" (maximum distance) or "none".

interval

Character. One of "No" (absolute ages), "previous" (time spent since previous event) or "next" (time spent until next event.).

Value

a distance matrix.

Author(s)

Matthias Studer

References

Studer, M., Müller, N.S., Ritschard, G. & Gabadinho, A. (2010), "Classer, discriminer et visualiser des séquences d'événements", In Extraction et gestion des connaissances (EGC 2010), Revue des nouvelles technologies de l'information RNTI. Vol. E-19, pp. 37-48.

Examples

1
2
3
4
5
data(actcal.tse)
actcal.seqe <- seqecreate(actcal.tse[1:200,])[1:6,]
## We have 8 different event in this dataset
idcost <- rep(1, 8)
dd <- seqedist(actcal.seqe, idcost=idcost, vparam=.1)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.