Description Usage Arguments Value References See Also Examples
Precomputes several values used on MASS
1 |
data |
a |
query |
a |
window_size |
an |
Returns window_size
, data_fft
, data_size
, data_mean
, data_sd
, query_mean
and query_sd
.
Abdullah Mueen, Yan Zhu, Michael Yeh, Kaveh Kamgar, Krishnamurthy Viswanathan, Chetan Kumar Gupta and Eamonn Keogh (2015), The Fastest Similarity Search Algorithm for Time Series Subsequences under Euclidean Distance.
Website: https://www.cs.unm.edu/~mueen/FastestSimilaritySearch.html
mass_v2()
, mass_v3()
for using precomputed values.
1 2 3 4 5 6 7 8 9 10 11 12 13 | w <- mp_toy_data$sub_len
ref_data <- mp_toy_data$data[, 1]
query_data <- mp_toy_data$data[, 1]
pre <- tsmp:::mass_pre(ref_data, query_data, w)
dp <- list()
for (i in 1:(pre$data_size - w + 1)) {
dp[[i]] <- tsmp:::mass_v2(
query_data[i:(i - 1 + w)], pre$window_size, pre$data_fft, pre$data_size,
pre$data_mean, pre$data_sd, pre$query_mean[i], pre$query_sd[i]
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.