gaitmap.stride_segmentation.find_matches_min_under_threshold#

gaitmap.stride_segmentation.find_matches_min_under_threshold(acc_cost_mat: ndarray, max_cost: float, **_) ndarray[source]#

Find matches in the accumulated cost matrix by searching for minima in sections enclosed by the max_cost.

Parameters:
acc_cost_mat

Accumulated cost matrix as derived from a DTW

max_cost

The max_cost is used to cut the signal into enclosed segments. More details at find_local_minima_below_threshold.

Returns:
list_of_matches

A list of indices marking the end of a potential stride.