min_mp_idx: Get index of the minimum value from a matrix profile and its...

Description Usage Arguments Value Examples

View source: R/misc.R

Description

Get index of the minimum value from a matrix profile and its nearest neighbor

Usage

1
min_mp_idx(.mp, n_dim = NULL, valid = TRUE)

Arguments

.mp

a MatrixProfile object.

n_dim

number of dimensions of the matrix profile

valid

check for valid numbers

Value

returns a matrix with two columns: the minimum and the nearest neighbor

Examples

1
2
3
4
w <- 50
data <- mp_gait_data
mp <- tsmp(data, window_size = w, exclusion_zone = 1 / 4, verbose = 0)
min_val <- min_mp_idx(mp)

franzbischoff/tsmp documentation built on March 9, 2020, 6:01 a.m.