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 height value for the find_peaks function.

min_distance

The min distance in samples. This is used as the distance value for the find_peaks function.

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_distance

Details on the function call to find_peaks.

scipy.signal.find_peaks

The actual find_peaks method.