MPdist is a distance measure which considers two time series to be similar if they share many similar subsequences, regardless of the order of matching subsequences.
Usage
mpdist(
ref_data,
query_data,
window_size,
type = c("simple", "vector"),
thr = 0.05,
n_workers = 1L
)Arguments
- ref_data
a
matrixor avector. The reference data.- query_data
a
matrixor avector. The query data.- window_size
an
int. Size of the sliding window. Must be at least 4.- type
the type of result:
"simple"(default) returns a scalar distance,"vector"returns distance between all sliding windows.- thr
threshold for MPdist. (Default is
0.05).- n_workers
an
int. Number of threads for parallel computation. (Default is1). For parallel execution across processes, prefer a PSOCK cluster and usen_workers = 1within each worker. See matrixprofiler for fork limitations.
