Edge AI Add-on API 2.3.0
Loading...
Searching...
No Matches
nrf_dsp_var.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 */
15#ifndef _NRF_DSP_STAT_VAR_FUNCTIONS_H_
16#define _NRF_DSP_STAT_VAR_FUNCTIONS_H_
17
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
39flt32_t nrf_dsp_var_f32(const flt32_t *p_input, uint16_t num, nrf_dsp_stat_ctx_f32_t *p_ctx);
40
59 uint16_t num,
60 size32_t stride,
62
73
84void nrf_dsp_deriv_var_f32(const flt32_t *p_input,
85 uint16_t num,
86 nrf_dsp_derivative_var_f32_t *p_deriv_variance);
87
100uint16_t nrf_dsp_var_i8(const int8_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i8_t *p_ctx);
101
116uint16_t nrf_dsp_var_i8_s(const int8_t *p_input,
117 uint16_t num,
118 size32_t stride,
119 nrf_dsp_stat_ctx_i8_t *p_ctx);
120
131
139void nrf_dsp_deriv_var_i8(const int8_t *p_input,
140 uint16_t num,
141 nrf_dsp_derivative_var_i8_t *p_deriv_variance);
142
155uint32_t nrf_dsp_var_i16(const int16_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i16_t *p_ctx);
156
171uint32_t nrf_dsp_var_i16_s(const int16_t *p_input,
172 uint16_t num,
173 size32_t stride,
175
186
194void nrf_dsp_deriv_var_i16(const int16_t *p_input,
195 uint16_t num,
196 nrf_dsp_derivative_var_i16_t *p_deriv_variance);
197
198#ifdef __cplusplus
199}
200#endif
201
202#endif /* _NRF_DSP_STAT_VAR_FUNCTIONS_H_ */
203
void nrf_dsp_deriv_var_i16(const int16_t *p_input, uint16_t num, nrf_dsp_derivative_var_i16_t *p_deriv_variance)
Calculate Derivatives of variance in the INT16 fixed-point vector.
struct nrf_dsp_derivative_var_f32_s nrf_dsp_derivative_var_f32_t
Derivatives of variance for floating-point format.
struct nrf_dsp_derivative_var_i8_s nrf_dsp_derivative_var_i8_t
Derivatives of variance for INT8 format.
uint16_t nrf_dsp_var_i8(const int8_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i8_t *p_ctx)
Calculate Variance value of a INT8 fixed-point vector.
flt32_t nrf_dsp_var_f32(const flt32_t *p_input, uint16_t num, nrf_dsp_stat_ctx_f32_t *p_ctx)
Calculate Variance value of a floating-point vector.
void nrf_dsp_deriv_var_i8(const int8_t *p_input, uint16_t num, nrf_dsp_derivative_var_i8_t *p_deriv_variance)
Calculate Derivatives of variance in the INT8 fixed-point vector.
uint32_t nrf_dsp_var_i16(const int16_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i16_t *p_ctx)
Calculate Variance value of a INT16 fixed-point vector.
void nrf_dsp_deriv_var_f32(const flt32_t *p_input, uint16_t num, nrf_dsp_derivative_var_f32_t *p_deriv_variance)
Calculate Derivatives of variance in the floating-point vector.
struct nrf_dsp_derivative_var_i16_s nrf_dsp_derivative_var_i16_t
Derivatives of variance for INT16 format.
uint32_t nrf_dsp_var_i16_s(const int16_t *p_input, uint16_t num, size32_t stride, nrf_dsp_stat_ctx_i16_t *p_ctx)
Calculate Variance value of a INT16 fixed-point vector ​​using values ​​in increments of 'stride'.
uint16_t nrf_dsp_var_i8_s(const int8_t *p_input, uint16_t num, size32_t stride, nrf_dsp_stat_ctx_i8_t *p_ctx)
Calculate Variance value of a INT8 fixed-point vector ​​using values ​​in increments of 'stride'.
flt32_t nrf_dsp_var_f32_s(const flt32_t *p_input, uint16_t num, size32_t stride, nrf_dsp_stat_ctx_f32_t *p_ctx)
Calculate Variance value of a floating-point vector ​​using values ​​in increments of 'stride'.
size_t size32_t
Architecture 32-bit size_t type definition.
Definition nrf_edgeai_ctypes.h:31
float flt32_t
32-bit floating-point type definition.
Definition nrf_edgeai_ctypes.h:21
flt32_t second
Definition nrf_dsp_var.h:71
flt32_t first
Definition nrf_dsp_var.h:68
Derivatives of variance for floating-point format.
Definition nrf_dsp_var.h:66
uint32_t first
Definition nrf_dsp_var.h:181
uint32_t second
Definition nrf_dsp_var.h:184
Derivatives of variance for INT16 format.
Definition nrf_dsp_var.h:179
uint16_t second
Definition nrf_dsp_var.h:129
uint16_t first
Definition nrf_dsp_var.h:126
Derivatives of variance for INT8 format.
Definition nrf_dsp_var.h:124
Floating-point statistics reusable context, in which is used to store derived or intermediate metrics...
Definition nrf_dsp_types.h:80
INT16 statistics reusable context, in which is used to store derived or intermediate metrics to simpl...
Definition nrf_dsp_types.h:135
INT8 statistics reusable context, in which is used to store derived or intermediate metrics to simpli...
Definition nrf_dsp_types.h:116