Learn R Programming

tsmp (version 0.3.1)

av_zerocrossing: Computes the annotation vector that favors number of zero crossing

Description

Computes the annotation vector that favors number of zero crossing

Usage

av_zerocrossing(.mp, data, apply = FALSE)

Arguments

.mp

a Matrix Profile object.

data

a vector or a column matrix of numeric.

apply

logical. (Default is FALSE). Applies the Annotation Vector over the Matrix Profile. Use with caution.

Value

Returns the input .mp object with an 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 <U+2019>17. New York, New York, USA: ACM Press; 2017. p. 125<U+2013>34.

See Also

Other Annotation vectors: av_apply, av_complexity, av_hardlimit_artifact, av_motion_artifact, av_stop_word

Examples

Run this code
# NOT RUN {
data <- mp_test_data$train$data[1:1000]
w <- 50
mp <- tsmp(data, window_size = w, verbose = 0)
av <- av_zerocrossing(mp, apply = TRUE)

# }

Run the code above in your browser using DataLab