17#ifndef _NRF_DSP_SPECTRAL_CENTROID_H_
18#define _NRF_DSP_SPECTRAL_CENTROID_H_
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.
float flt32_t
32-bit floating-point type definition.
Definition nrf_edgeai_ctypes.h:21
Floating-point spectral reusable context, in which is used to store derived or intermediate metrics t...
Definition nrf_dsp_types.h:107
INT16-fixed-point spectral reusable context, in which is used to store derived or intermediate metric...
Definition nrf_dsp_types.h:168