![]() |
Edge AI Add-on API 2.2.0
|
| void nrf_dsp_findpeaks_i8 | ( | int8_t | p_input[], |
| uint16_t | num, | ||
| int8_t | min_peak_height, | ||
| uint16_t | min_peak_distance, | ||
| int16_t | peaks_indices[], | ||
| uint16_t | peaks_indices_num ) |
#include <include/nrf_edgeai/dsp/spectral/nrf_dsp_findpeaks.h>
Finds peaks indexes in the INT8 fixed-point.
| [in] | p_input | Pointer to the input vector |
| [in] | num | Number of samples in the input vector |
| [in] | min_peak_height | Minimum peak height to find |
| [in] | min_peak_distance | Minimum distance between peaks |
| [out] | peaks_indices | Pointer to the output array with founded highest peak indicies, if peaks corresponding search coniditions (min_peak_height, min_peak_distance) was not found, -1 will be written as output |
| [in] | peaks_indices_num | Number of highest peaks to find |