gaitmap.stride_segmentation.find_matches_find_peaks#
- gaitmap.stride_segmentation.find_matches_find_peaks(acc_cost_mat: ndarray, max_cost: float, min_distance: float) ndarray[source]#
Find matches in the accumulated cost matrix using
find_peaks.- Parameters:
- acc_cost_mat
Accumulated cost matrix as derived from a DTW
- max_cost
The max_cost is used as
heightvalue for thefind_peaksfunction.- min_distance
The min distance in samples. This is used as the
distancevalue for thefind_peaksfunction.
- Returns:
- list_of_matches
A list of indices marking the end of a potential stride.
See also
gaitmap.utils.array_handling.find_local_minima_with_distanceDetails on the function call to
find_peaks.scipy.signal.find_peaksThe actual
find_peaksmethod.