Fast implementation of MP and MPI for internal purposes, without FFT

mpx(
  data,
  window_size,
  query = NULL,
  idx = TRUE,
  dist = c("euclidean", "pearson"),
  n_workers = 1
)

Arguments

data

a matrix or a vector. The time series to analyze.

window_size

window size

query

query

idx

compute the profile indexes?

dist

distance measure, Euclidean or Pearson?

n_workers

threads for multi-threading

Value

Returns MP and MPI

Examples

# \donttest{
mp <- mpx(mp_toy_data$data[1:200, 1], window_size = 30)
# }