Edge AI Add-on API 2.3.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 */
18#ifndef _NRF_DSP_SPECTRAL_CENTROID_H_
19#define _NRF_DSP_SPECTRAL_CENTROID_H_
20
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
39 uint16_t num,
41
53int16_t nrf_dsp_spectral_centroid_i16(int16_t p_spectrum[],
54 uint16_t num,
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* _NRF_DSP_SPECTRAL_CENTROID_H_ */
62
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:100
INT16-fixed-point spectral reusable context, in which is used to store derived or intermediate metric...
Definition nrf_dsp_types.h:155