This function overwrites the current Matrix Profile using the Annotation Vector. Use with caution.

av_apply(.mp)

Arguments

.mp

A Matrix Profile with an Annotation Vector.

Value

Returns the input .mp object corrected by the embedded annotation vector.

References

  • Dau HA, Keogh E. Matrix Profile V: A Generic Technique to Incorporate Domain Knowledge into Motif Discovery. In: Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining - KDD '17. New York, New York, USA: ACM Press; 2017. p. 125-34.

See also

Examples

data <- mp_test_data$train$data[1:1000]
w <- 50
mp <- tsmp(data, window_size = w, verbose = 0)
mp <- av_complexity(mp)
#> Error: Variables must be length 1 or 3
av <- av_apply(mp)
#> Error in av_apply(mp): First argument must be an object of class `MatrixProfile`.