Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ nrf_dsp_pk2pk_hf_i16_s()

int32_t nrf_dsp_pk2pk_hf_i16_s ( const int16_t * p_input,
uint16_t num,
size32_t stride,
size32_t window_size )

#include <include/nrf_edgeai/dsp/statistic/nrf_dsp_pk2pk.h>

Finds Peak-to-Peak amplitude for High frequency component of signal, represented as a INT16 fixed-point vector, using values ​​in increments of 'stride'.

Parameters
[in]p_inputPointer to the input vector
[in]numNumber of samples with 'stride' in input vector
[in]strideVector element offset stride
[in]window_sizeDetermines window size for calculation moving average filter sum, window_size affect attenuation for frequencies
Returns
int32_t Peak-to-Peak amplitude for High frequency component