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

The spectral centroid represents the "center of mass" of the frequency content in a vibration signal, indicating the average frequency where most of the signal's energy is concentrated. It provides insight into the distribution of energy across different frequency bands. More...

Functions

flt32_t nrf_dsp_spectral_centroid_f32 (flt32_t p_spectrum[], uint16_t num, nrf_dsp_spectral_ctx_f32_t *p_ctx)
 Calculate Spectral Centroid in floating-point spectrum.
 
int16_t nrf_dsp_spectral_centroid_i16 (int16_t p_spectrum[], uint16_t num, nrf_dsp_spectral_ctx_i16_t *p_ctx)
 Calculate Spectral Centroid in INT16 fixed-point spectrum.
 

Detailed Description

The spectral centroid represents the "center of mass" of the frequency content in a vibration signal, indicating the average frequency where most of the signal's energy is concentrated. It provides insight into the distribution of energy across different frequency bands.