Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_dsp_spectral_centroid.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
17#ifndef _NRF_DSP_SPECTRAL_CENTROID_H_
18#define _NRF_DSP_SPECTRAL_CENTROID_H_
19
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
37 uint16_t num,
39
50int16_t nrf_dsp_spectral_centroid_i16(int16_t p_spectrum[],
51 uint16_t num,
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif /* _NRF_DSP_SPECTRAL_CENTROID_H_ */
59
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