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

◆ nrf_dsp_spectral_spread_f32()

flt32_t nrf_dsp_spectral_spread_f32 ( flt32_t p_spectrum[],
uint16_t num,
nrf_dsp_spectral_ctx_f32_t * p_ctx )

#include <include/nrf_edgeai/dsp/spectral/nrf_dsp_spectral_spread.h>

Calculate Spectral Spread in floating-point spectrum.

Parameters
[in]p_spectrumPointer to amplitude spectrum vector
[in]numNumber of bins/samples in amplitude spectrum
[in,out]p_ctxPointer to optional spectral context, the calculated value of magnitude_sum and cetroid will be used
Returns
flt32_t Spectral Spread