Edge AI Add-on API 2.2.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
38flt32_t nrf_dsp_var_f32(const flt32_t* p_input, uint16_t num, nrf_dsp_stat_ctx_f32_t* p_ctx);
39
56 uint16_t num,
57 size32_t stride,
59
71
82void nrf_dsp_deriv_var_f32(const flt32_t* p_input,
83 uint16_t num,
84 nrf_dsp_derivative_var_f32_t* p_deriv_variance);
85
97uint16_t nrf_dsp_var_i8(const int8_t* p_input, uint16_t num, nrf_dsp_stat_ctx_i8_t* p_ctx);
98
111uint16_t nrf_dsp_var_i8_s(const int8_t* p_input,
112 uint16_t num,
113 size32_t stride,
114 nrf_dsp_stat_ctx_i8_t* p_ctx);
115
127
135void nrf_dsp_deriv_var_i8(const int8_t* p_input,
136 uint16_t num,
137 nrf_dsp_derivative_var_i8_t* p_deriv_variance);
138
150uint32_t nrf_dsp_var_i16(const int16_t* p_input, uint16_t num, nrf_dsp_stat_ctx_i16_t* p_ctx);
151
164uint32_t nrf_dsp_var_i16_s(const int16_t* p_input,
165 uint16_t num,
166 size32_t stride,
168
180
188void nrf_dsp_deriv_var_i16(const int16_t* p_input,
189 uint16_t num,
190 nrf_dsp_derivative_var_i16_t* p_deriv_variance);
191
192#ifdef __cplusplus
193}
194#endif
195
196#endif /* _NRF_DSP_STAT_VAR_FUNCTIONS_H_ */
197
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:69
flt32_t first
Definition nrf_dsp_var.h:66
Derivatives of variance for floating-point format.
Definition nrf_dsp_var.h:64
uint32_t first
Definition nrf_dsp_var.h:175
uint32_t second
Definition nrf_dsp_var.h:178
Derivatives of variance for INT16 format.
Definition nrf_dsp_var.h:173
uint16_t second
Definition nrf_dsp_var.h:125
uint16_t first
Definition nrf_dsp_var.h:122
Derivatives of variance for INT8 format.
Definition nrf_dsp_var.h:120
Floating-point statistics reusable context, in which is used to store derived or intermediate metrics...
Definition nrf_dsp_types.h:85
INT16 statistics reusable context, in which is used to store derived or intermediate metrics to simpl...
Definition nrf_dsp_types.h:146
INT8 statistics reusable context, in which is used to store derived or intermediate metrics to simpli...
Definition nrf_dsp_types.h:125