av_stop_word {tsmp}R Documentation

Computes the annotation vector that suppresses stop-word motifs

Description

Computes the annotation vector that suppresses stop-word motifs

Usage

av_stop_word(
  .mp,
  data,
  stop_word_loc,
  exclusion_zone = NULL,
  threshold = 0.1,
  apply = FALSE
)

Arguments

.mp

a Matrix Profile object.

data

a vector or a column matrix of numeric.

stop_word_loc

an int. The index of stop word location.

exclusion_zone

a numeric. Size of the exclusion zone, based on window_size (default is NULL). See details.

threshold

a numeric. (default is 0.1).

apply

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

Details

The function is intended to be generic. However, its parameters (stop_word_loc, exclusion_zone and threshold) are highly dataset dependent.

Value

Returns the input .mp object with an embedded annotation vector.

References

See Also

Other Annotation vectors: av_apply(), av_complexity(), av_hardlimit_artifact(), av_motion_artifact(), av_zerocrossing()

Examples

data <- mp_test_data$train$data[1:1000]
w <- 50
mp <- tsmp(data, window_size = w, verbose = 0)
av <- av_stop_word(mp, stop_word_loc = 150, apply = TRUE)

[Package tsmp version 0.4.15 Index]