powered by
Get index of the minimum value from a matrix profile and its nearest neighbor
min_mp_idx(.mp, n_dim = NULL, valid = TRUE)
returns a matrix with two columns: the minimum and the nearest neighbor
matrix
a MatrixProfile object.
MatrixProfile
number of dimensions of the matrix profile
check for valid numbers
w <- 50 data <- mp_gait_data mp <- tsmp(data, window_size = w, exclusion_zone = 1 / 4, verbose = 0) min_val <- min_mp_idx(mp)
Run the code above in your browser using DataLab