Learn R Programming

matrixProfile (version 0.5.0)

mass: Mueen's ultra-fast Algorithm for Similarity Search (MASS)

Description

Calculates a sliding dot prodocts of given data.

Usage

mass(q, t)

Arguments

q

A query data for dot product.

t

A timeseries data for analysis.

Value

Dot products between query and all subsequences in Timeseries. In the paper, we can implicitly construct a distance matrix with this output values that are the result of these dot products.

References

Yeh, C. C. M., Zhu, Y., Ulanova, L., Begum, N., Ding, Y., Dau, H. A., ... & Keogh, E. (2016) <DOI:10.1109/ICDM.2016.0179>. 2016 IEEE 16th International Conference on Data Mining (ICDM), Barcelona, 2016, pp. 1317-1322.

https://www.cs.unm.edu/~mueen/MASS_V2.m

Examples

Run this code
# NOT RUN {
dt = AirPassengers
dt = as.vector(dt)
par(mfrow = c(2,1))
plot(dt, type = "l")
dm <- mass(q = dt[1:10], t = dt[-c(1:10)])
plot(dm, tyep = "l")
# }

Run the code above in your browser using DataLab